Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > custom sorting in gridview

Thread Tools

custom sorting in gridview

Posts: n/a
I want to implment cusotm sorting in gridview...
Ive a dropdown box on my page where ive all the fields(columsn) to be sorted..
whenever hte user selects the value in the dropdown , the gridview should be

As of now, whenever user selects a value in the dropdown , Im rebinding
the grid with sorting applied....
but this is hittng the page performance...

so Im thinking to get the datasource associated with the girdview and then
sort the data...
Ive used gridview,DataSource property to retrieve the datatable associated
with it..
but its always returning null.

can some one help me out with this issue.
why is the DataSource property returnign null though the data is present...
How the .net has implemented the default sorting without reloading..??.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom sorting in gridview AVL ASP .Net 1 10-21-2008 02:10 PM
Sorting and Paging a Custom Gridview ASP .Net 1 12-30-2007 12:49 AM
Sorting custom paged gridview resets PageIndex Aamir Ghanchi ASP .Net 2 08-23-2007 07:46 AM
Gridview sorting event - Gridview Datasource always Null .. why??? jobs ASP .Net Web Controls 2 10-24-2006 07:08 AM
Custom GridView Header and sorting Liming ASP .Net 0 10-02-2006 10:41 PM