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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Detecting pre and post sort

Thread ID:





7146 Sep 12,2003 07:31 PM UTC Sep 12,2003 08:34 PM UTC WinForms 1
Tags: GridControl
scot adams
Asked On September 12, 2003 07:31 PM UTC

I need to disable the DataTables.DefaultView.ListChanged event when the grid is sorted, and enable it when the sort is complete. Checking for the "Reset" for ListChangeType in the handler function won't help because the Filter results in the same "Reset" value, so I have no way to tell if the person is sorting or filtering.

Administrator [Syncfusion]
Replied On September 12, 2003 08:34 PM UTC

You can derive the GridDataBoundGrid, and override the SortColumns method. In your override, you could raise a presort event, call the baseclass, and then raise a postsort event. If you do not want to add your own events, you could add a public field or property bool inSort, and set this property before the call to the baseclass, and reset it after the call to the baseclass. You could then test this flag to know when you are sorting.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon