There is no good way to do this, because for most post-events, there is no corresponding pre-events. For example, for the Sorted event, there is no BeforeSorting event (or whatever name it could have).
The only suggestion we have is to set a test grid, in which you imitate the UI interaction in code and make your measurements in between the calls.
e.g. :
DateTime time1;
DateTime time2;
TimeSpan span;
time1 =
DateTime.Now;
gridControl1.SortedColumns.Add(
“ProductName” );
time2 =
DateTime.Now;
span = time2 – time1;
Debug.WriteLine( span.ToString() );
Imported from legacy forums. Posted by André (had 763 views)