Strong Coders Community

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

C# GridView Paging/Sorting w/o DataSourceControl DataSource Sample

Download
File Details
Downloads: 14441 File Size: 1.1MB
Posted By: Ryan Olshan Views: 3791
Date Added: Sun, Feb 19 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
 

bonfire89 said:

ehhh' wicked.. this code helped me very much. thanks!
Fri, Jul 07 2006 10:06 PM
 

said:

There still appears to be an issue with obtaining the dataView from the dataset tables collection. The code:DataSet ds = GridView1.DataSource as DataSet; returns only a null. I'm using the enterprise DAAB for populating a dataset and binding to the gridview. Any thoughts?
Tue, Aug 29 2006 10:22 AM
 

fillus said:

well boyzee... this saved me alot of time!
Thu, Oct 19 2006 2:22 AM
 

qalo said:

Hi there,i'm using a DAAB and a stored procedure to get my data. my stored proc accepts currpage, pagesize, sortcol & sortorder.how can i do paging & sorting in this regard?
Mon, Nov 06 2006 3:37 AM
 

ramdotnet said:

Thanks a lott.This code snippet helped me a lot. well done Guyz..Good Work!!!
Mon, Nov 27 2006 4:57 AM

Add Comment

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

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