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

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?

1 Reply

AD Administrator Syncfusion Team 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
	}
}

Loader.
Up arrow icon