DataGrid, how to determine which column is being sorted on

P

paul

Hi,

I've a DataGrid and a DataSet (not a DataView) as the DataSource.
Users can click on column headers and sort the contents of the DataGrid.
I want to know how to determine which column is being used to order the sorted data.
I can't see in the microsoft DataGrid in vb.net the Event 'SortCommand'.
I think that its because I'm using vb.net not asp.

Thanks in advance.
 
B

Becker

I have the same quesiton and this was the first place I looked. I see using
the bindingmanagerbase to do this, but I don't know where to put this. What
event is it when the user sorts? I want this to fire automatically after
the sort occurs, but I'm not sure where to stick the code that is on this
link to reference that row.

Thanks,
Ben
 

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

Top