Strong Coders Community

Where the extreme coders hang out.
Welcome to Strong Coders Community Sign in | Join | Help Messenger

VB.NET GridView Paging/Sorting w/o DataSourceControl DataSource Sample

Download
File Details
Downloads: 461 File Size: 1.1MB
Posted By: Ryan Olshan Views: 2213
Date Added: Thu, Feb 23 2006

This code is ready to run out of the ZIP file with the attached Access database. It demonstrates how to implement paging and sorting in a GridView without using a DataSourceControl data source.

Updated on 10/22/2006: Fixed sorting bug.

Updated on 8/9/2006: Added ability to allow sort state and data to persist between page changes.

Filed under: ,
Comments
 

vadimas said:

Populating Gridview in PageInit every time? Why just don't save in Session?
Fri, Sep 29 2006 9:39 AM
 

HyVong said:

Your sample code is helpful but it would be better if the code were commented for those beginner coder. Just a questions, is there any way we can bind the gridview to a Collection instead of a datatable? Thanks for the sample code.
Fri, Feb 02 2007 10:31 AM

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add

Powered by Community Server (Commercial Edition), by Telligent Systems