Changing the Page Size Interactively in a DataGrid Web Control
(Page 1 of 5 )
Csaba explains the problems that occur when to wish to display many records using the DataGrid Server and the user decides to change the pagesize.
A useful technique to display a large number of records with the DataGrid server control is to use paging to present the data as a number of pages showing a certain number of records per page. Although most sites that do this allow to select the page size before the user submits the data query, I often miss the ability to adjust interactively the page size without losing the records I was looking at before I changed the size of the page.
I investigated a little what was going on behind the scenes and I found out that there is a little problem here. In this article I am going to show what problem arises and what happens when we change the page size and how we can allow the user to set interactively the PageSize property of the DataGrid server control.Next: The Problem >>
More ASP.NET Articles
More By Csaba Hatvany