No sorting event available when sorting DataGrid columns!!!

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

Guest

Hello,

I set my DataGrid.AllowSorting to true but there is no sort event to do some
processing! All I can think of is inside the click event which is not what I
really want because click event occurs before DataGrid is sorted.

Any comments?
 
There is an event called ListChanged of Datagrid's Dataview.
This is fired after sorting.
In the event handler u can check if the previus dataView.dort != dataview.Sort
if they are not equal it means that listview has chaged because of sorting.
(you need to save the preious Dataview.Sort information in a member variable)

-Kina
 
Thanks a lot.

Kina said:
There is an event called ListChanged of Datagrid's Dataview.
This is fired after sorting.
In the event handler u can check if the previus dataView.dort != dataview.Sort
if they are not equal it means that listview has chaged because of sorting.
(you need to save the preious Dataview.Sort information in a member variable)

-Kina
 

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