So I have to specify how I want them to appear in the normal view and edit view.
That’s why I have placed different templates like Item Template (for normal view) and Edit Item Template (for edit view).
Net Grid View control with simple Data Set or Data Table, and also explains the methods like Insert, Edit, Update and Delete function in the Grid View control.
You can see most of the articles and tutorials in many websites teach you the way to bind a Grid View control to the database with some Data Source controls such as SQLData Source, Object Data Source, Access Data Source and even XMLDatasource.
(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...
Suprotim is also the founder and primary contributor to Dev Curry, Dot Net Curry and SQLServer Curry.
He is the Editor of a Developer Magazine called DNC Magazine.
One has it's Command Name = "Update" and the other "Cancel".
My problem lies in that the click on the Update Image Button posts back, but neither the Row Command nor Row Updating events get triggered.
In this article, I am going to explain how to manipulate data using Grid View control.