more gridview woes
Date: 06/27/06
(Asp Dot Net) Keywords: no keywords
I have a mostly dynamic gridview. I have 2 columns that I've hard coded in. The rest are created on the fly.
The new problem is that when I update a row, my changes don't show unless I redo my select statement (since I don't have it bound using the built-in datasource functionality). After I redo my select statement getting the updated row, I bind the grid, and it shows up. However, it is appending to the original data since I binded the grid earlier before the update. (Since its all dynamic I have to repopulate the grid on every postback). So now all my columns are showing up twice.
Is there some way I can just set my dataSource, and have it update itself after I modify a row? Or a way to "unbind" the grid before I rebind it after the update?
XX posted
Thanks
Source: http://community.livejournal.com/aspdotnet/71478.html