We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Event after sort

Using Essential Studio version 10.1.0.44. WPF DataGridControl

Is there a way to get a notification after the grid is sorted. There is no such event. I tried it doing CellClick event and checking for header rows but even that is fired before the grid is sorted. I need it after the sorting is done.


3 Replies

RA Rajasekar Syncfusion Team May 17, 2012 12:08 PM UTC

Hi Irfan,

 

Thank you for your update.

 

You can  achieve your requirement by using the sort columns changed event like shown below,

 

        this.dataGrid.SortColumns.Changed += new EventHandler(SortColumns_Changed);
        
        void SortColumns_Changed(object sender, EventArgs e)
        {
            
        }

 

Please let us know if you have any queries.

 

Thanks,

Rajasekar



PS Phil Steel February 12, 2013 02:42 PM UTC

I couldn't find this for the GridTreeControl - is the same after sort event handler available for the GridTreeControl?


RG Rajasekar G Syncfusion Team February 13, 2013 10:17 AM UTC

Hi Phil,

 

Sorry for the inconvenience caused. 

 

At present there is no SortColumns Changed event for GridTreeControl like in GridDataControl. So could you please share  your exact requirement and  the purpose of this event in your application with us. That would be very helpful for further analysis.

                                                                          

Please let us know if you have any questions.

 

Regards,

Raja sekar.G


Loader.
Live Chat Icon For mobile
Up arrow icon