Rowupdating how to
I have a Gridview with Auto Generate Columns="False".
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...
You're accessing so many items without null checks that it could be any number of things. Are you sure all of the controls exist in the cells you're specifying?
If the values are alternated in the dictionary they are applied to the grid. The hashtable consists of the new values to be set on the row cells.
If the values are alternated in the hashtable they are applied to the grid and carried over to the data source as well.
So it only works when you use Data Source Control .