To create a clone table execute the following query. Hence to make it simple will create a new table called TestCustomers and use that instead. The Customers table has some relationships with other tables hence it will not allow delete directly without removing the foreign key references. I have used the Customers table from the Northwind Database for this example. CustomerID is assigned to the DataKeyNames property of the GridView which will allow us to uniquely identify each rowĭata Binding the ASP.Net GridView control Paging is enabled for the GridView and there’s OnPageIndexChanging event that will be described later. There’s a hidden field to store the count of the selected records and a delete button to trigger the delete operation. You’ll notice above I have added a template field with checkboxes also I have added a check all checkbox in the Header Template of the ASP.net GridView Control.
0 Comments
Leave a Reply. |