Handles gridview1 rowupdating
Clicking on the link buttons raise two events: Just like paging events these events follow pre and post pattern.The Sorting event allows you to cancel the operation also.They are: The former event is raised before the current page changes and the later is raised after the page has changed. Write the following code in the Page Index Changing event of the Grid View.
There are many articles and tutorials around that illustrate the use of Grid View control along with the new Data Source Controls.Clicking on Update link button raises Row Updating event whereas clicking on the Cancel link button raises Row Canceling Edit event.We need to write our own code to update the new values back to the database in the Row Updating event.The Data View supplies all the records from the Employees table.In order to implement paging you need to set Allow Paging property of the Grid View control to True. There are two events of Grid View that are related to paging.
Search for handles gridview1 rowupdating:
Since we are not using data source controls we need to handle the toggling of the sort direction on our own. Add the following code in the Sorting event handler.