Updating a gridview dating for christian widowers

I learned this the hard way.”In this article we learned how to update only the changed rows of the Grid View control by using Ajax calls.

This will improve performance in cases where you display a large number of rows to the user and the user only updates few rows.

There was no way to know what rows were changed by the user.

Matt took the road to update all the rows whether they were changed or not.

The Grid View contains three Template Field columns namely, ID, Category Name and Category Description. Net is useful for displaying large data in a tabular format.I have previously posted an article on how to insert new rows in database using a Grid View.Data Item Index returns the index position in the entire dataset, which is not what you want if you are using paging and you have not used a sproc that pulls only one page of value at a time. Display Index to get the row position on the page being displayed / updated.If your Page Size is 10 and you've edited the first record on the second page, Data Item Index returns 10 while Display Index returns 0, and since each page only has index values of 0-9, you get an index out of bounds error if you use the Data Item Index to find a Data Key value to use in your update code.

Leave a Reply