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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG - Looking for an event that fires when grid is sorted

Thread ID:

Created:

Updated:

Platform:

Replies:

29795 Jun 2,2005 08:20 PM UTC Jun 2,2005 11:55 PM UTC WinForms 1
loading
Tags: GridControl
Lori S. Pearsall
Asked On June 2, 2005 08:20 PM UTC

I have an instance where I turn off the sorting of the grid temporarily and then, in another event, turn it back on. I turn the sort on by setting dv.Sort where dv is the underlying DataView. I need to know when the grid is finished resetting the sort so that I can do one more thing. Is there an event that fires when the sorting of the grid is complete?

Administrator [Syncfusion]
Replied On June 2, 2005 11:55 PM UTC

Something to try. Subscribe to the dv.ListChanged event where dv is your DataView. dv.ListChanged += new ListChangedEventHandler(dv_ListChanged); Then in the event handler, look for the Reset action. You may need to set a flag before you sort using dv.Sort as the reset action can occur for reasons other than a sort.
private void dv_ListChanged(object sender, ListChangedEventArgs e)
{
	if(e.ListChangedType == ListChangedType.Reset)
	{
		//sorted
	}
}

CONFIRMATION

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.

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

;