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
 
Back
Top