Gridview rowupdating event not updating xpe sp1 images to sp2
I removed everything I did with View State and edited the original post again with what I currently got. I cannot sort the Grid View because I'm trying to sort with Your code doesn't have Data Source ID.
I have a Gridview with Auto Generate Columns="False".
Check out what I’m trying to do, maybe you can help?
I don't know how many controls do I have to create and I don't know what kind of control will it be. I know that the problem is that I create the controls in the Page_Load.
I have set the requisite attributes in the Grid View tag.
(Note, in the gridview the Enable View State="False" - if I set it to True I get the standard "Failed to load viewstate. error) One strange thing that I've noticed that makes me think it's a View State problem is that if I change the Command Name of the Update button to "Edit" that postback event does get captured in the Row Command event...
event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.
A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.