Updating gridview in asp net
If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]
In this article, I am going to explain how to manipulate data using Grid View control.
Add one cs file and set that name Global Class.csand write below code.using System. When error come, press the "Prt Scr" from your keyboard and paste the image on MS Paint.
An editable Grid View contains an additional column with an Edit button in each row.
When the end user clicks on an Edit button that row becomes editable, causing the Edit button to change to Update and Cancel buttons and the other columns to become Text Boxes.
Then I have several methods attached with following events Get video of hundreds of ASP. On Row Editing - Edit Record On Row Cancel Edit - Cancel Record On Row Updating - Update Record On Row Deleting - Delete Record As I set Auto Generate Columns property to false so I am going to manually write the fields name that I need to appear in the way I want.
So I have to specify how I want them to appear in the normal view and edit view.
If you are not familiar of binding the Grid View the way then I would suggest looking at my previous example first before you proceed to this example. Parameter name: index Any idea what I need to do to fix this issue?