Home arrow ASP.NET arrow Changing the Page Size Interactively in a DataGrid Web Control
ASP.NET

Changing the Page Size Interactively in a DataGrid Web Control


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.

Author Info:
By: Csaba Hatvany
Rating: 5 stars5 stars5 stars5 stars5 stars / 54
March 31, 2003
TABLE OF CONTENTS:
  1. · Changing the Page Size Interactively in a DataGrid Web Control
  2. · The Problem
  3. · The Solution
  4. · The Implementation
  5. · Conclusion

print this article
SEARCH DEVARTICLES

Changing the Page Size Interactively in a DataGrid Web Control
(Page 1 of 5 )

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.

blog comments powered by Disqus
ASP.NET ARTICLES

- How Caching Means More Ca-ching, Part 2
- How Caching Means More Ca-ching, Part 1
- Reading a Delimited File Using ASP.Net and V...
- What is .Net and Where is ASP.NET?
- An Object Driven Interface with .Net
- Create Your Own Guestbook In ASP.NET
- HTTP File Download Without User Interaction ...
- Dynamically Using Methods in ASP.NET
- Changing the Page Size Interactively in a Da...
- XML Serialization in ASP.NET
- Using Objects in ASP.NET: Part 1/2
- IE Web Controls in VB.NET
- Class Frameworks in VB .NET
- Cryptographic Objects in C#: Part 1
- Sample Chapter: Pure ASP.Net

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials