Add Controls To A Grid View
Add Controls To A Grid View
You can delete or edit the particular record in the grid view.
For each control specify the command type as edit or delete.
Now handle the gridview_rowcommand event for the gridview.
In the rowcommand event depending on the rowcommand type whether edit or delete
You can perform the required task.
For example if you view the second row details in the above grid
Here the coursed is passed in the query string so that you can access the course details in this
page as it is the primary key of the grid.
Now you can add a confirmation message while deleting the record.
In the dataBound event add the JavaScript code that shows a confirmation popup for the
delete column.
This is done using the below code
Download the source code in ASP.NET using C# from the below link
http://docs.google.com/leaf?
id=0B8hoTwnI_pgYZDBhMTQ0ZjEtNDk0My00Y2YwLThmNmYtMWU4ZTVjMTIwZm
Q0&hl=en