Home Forums WinForms controls Xceed Grid for WinForms How to measure elapsed time for loading/sorting/groupby events of grid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16449 |

    Hi,

    I quite liked the grid performance however wanted to have some measures for that.
    So can anybody suggest me how to measure Loading/Sorting/GroupBy performance ?

    Are there any built-in events you can suggest or any alternative approach.

    Thanks,
    Anurodh

    Imported from legacy forums. Posted by Anurodh (had 592 views)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.