Data grid row after sort

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

With the data grid I have set the allow sort to true. I aslo know with
hittest which column was last sorted.

Even thought I sort the dataview with that field but. But then How can I
get the currently selected row. there is one column in datagird "id". I want
to get that Id to show the further details......

Current Row index works perfectly if no sorting on the headers is applied I
want to retrive the id even after sorting......


Thanks in advance.....


Regards,

das
 
Das,

Why not get the value of the id field before the sort is applied, then
set the current row to that field when the sort is complete?
 
Thanks for reply,
User can click on any row at any time. I want to access the fields in the
currently selected row......

I think that it shouldn't be that complicated I must be missing some
thing....


das


Nicholas Paldino said:
Das,

Why not get the value of the id field before the sort is applied, then
set the current row to that field when the sort is complete?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Das said:
Hi,

With the data grid I have set the allow sort to true. I aslo know with
hittest which column was last sorted.

Even thought I sort the dataview with that field but. But then How can I
get the currently selected row. there is one column in datagird "id". I
want
to get that Id to show the further details......

Current Row index works perfectly if no sorting on the headers is applied
I
want to retrive the id even after sorting......


Thanks in advance.....


Regards,

das
 

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

Back
Top