| |
|
How do we update and delete data in a gridview? Datakeynames property in .NET?
The best way to Update or Delete a record in a GridView control is to include a CheckBox
column and a Submit Button.
The GridView has its own Delete and Edit functionality. If the GridView is populated with
data using an SqlDataSource, checkout the wizard that comes along with the SqlDataSource.
It may be used to automatically create an SQL Delete command and specify the delete parameters.
The DataKeyNames property of the GridView is set to a field name of the Table.
Follow these links for a detailed understanding of the various ways a GridView
record may be updated & deleted.
AspAlliance
EggHeadCafe
ASP.NET QuickStart
MSDN
CodeProject
Bind data to a server control without writing code
Masterpage ContentPage
Nested Masterpage?
SiteMapPath control
Sort GridView
Hotspot class, ImageMap
Update Delete Gridview, Datakeynames
| |