double databind

    Date: 06/27/06 (C Sharp)    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/csharp/67622.html

« ASP.NET 2.0 Profiles || nullable DateTimePicker »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home