Is it possible to access Gridview's sorted dataview?

J

JimLad

Hi - I'm going mad,

ASP.NET 3.5

I've got a Gridview bound to an objectdatasource. Sorting is enabled
in gridview, but objectdatasource isn't doing any sorting. I can pick
up the unsorted datatable from the Selected event of the
objectdatasource, but I really want the sorted version. Is there any
event on the gridview where I can access the sorted dataview it must
be using internally?

Why am I asking? We're using paging as well (i.e. truncated data in
gridview) and I want to loop through the full sorted dataview to find
the primary key value to set selectedindex.

Cheers,

James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top