Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Custom sorting

Thread Tools

Custom sorting

Posts: n/a
I've a requirement in which I want to use the custom sorting..
I mean I've a dropdown with sortable column names and when the user selects
particular column from dropdown , I need to sort the grid.

For it,Im trying to get the gridView.DataSource() to retrieve the datatable
attached to it (Ive earlier binded the gridview in page load in not postback
section ) , but gridView.DataSource() always returning null..
Im unable to resolve this..

When we enable the default sorting,in the the gridview_sorting,
gridView.DataSource hold the data...
But when I use it outward in any other control's event..
why its not showing the gridView.DataSource...

How does the default sorting work internally in the gridview...
Can anyone let me know how GridView's sorting happens...I would like to use
the same approach..for my custom avoid re binding the data..

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
Sorting list vs sorting vector C++ 2 07-06-2010 09:40 AM
fired event Sorting which wasn't handled - sorting and SelectedIndexChanged Jason ASP .Net Web Controls 0 10-04-2006 02:19 PM
Sorting a listitem by a custom field Simon ASP .Net 1 07-20-2004 11:04 AM
Datagrid custom sorting and paging using stored procedure Mo ASP .Net 1 01-30-2004 07:56 PM
sorting by multiple criterias (sub-sorting) Tom Kirchner Perl Misc 3 10-11-2003 05:16 PM