If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.
You need to include the Grid View Command Field column to add Edit, Update and Cancel Buttons in the Grid View. You need to include Template Field for every column you want to provide Editing because Template Field provides you both Item Template and Edit Item Template to create interface for two separate Grid View modes. You need to handle Grid View events such as Row Editing, Row Canceling Edit and Row Updating to provide desired editing functionality.
Font-Names="Verdana" Font-Size="10" Data Key Names="Product ID" Auto Generate Columns="false" onrowcancelingedit="Grid View1_Row Canceling Edit" onrowediting="Grid View1_Row Editing" onrowupdating="Grid View1_Row Updating"In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.
after completion of this i would like to know if there will be a lot of field in table than in insert and update mode there should be open a new panel.
Plz reply soon Thanks & Regards Umesh Chand Daiya First off, thank you for this post. All methods are working except for row update/edit.
If you are using another table then set one column as Primary Key for update and delete, then tell me what append!
Respected Sir, Its working properly now i want to use paging with gridview and sorting with this grid view.
In this tutorial I will show you how you can create an editable Grid View control for administrators to modify database records directly into the Grid View control.
Editing the Grid View control can be an incredibly easy feature to add for certain database tables, especially those who have no foreign key associated and can easily be edited through the use of a standard Text Box web control as shown in the figure below: 1.
To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.