AD
Administrator
Syncfusion Team
March 29, 2004 11:08 AM UTC
You might be able to discourage your user from trying to initiate a new sort before the current sort is completed by putting up a wait cursor around the sort call.
this.Cursor = Cursors.WaitCursor;
this.gridControl1.Data.SortByColumn(col,(ListSortDirection)this.gridControl1[0, col].Tag);
this.Cursor = Cursors.Default;
As far as faster sorting, if you have special knowledge of the data, then you might be able to do something faster by writing your own SortByColumn implementation, or maybe calling an overload of SortByColumn that accepts a custom comparer object that makes use of the special knowledge. The grid essentially does an ArrayList.Sort call. We will look at the default sort action to see if there is something we can do to speed it up.
AD
Administrator
Syncfusion Team
March 30, 2004 09:56 AM UTC
Isn''t it a bit weird that it is fast enough when i choose to sort a different cloumn every time?
I have strings in all three columns so i doubt i can do it faster than an array.Sort()...
Until i find a way to get more stability i''ll only sort ascending and not shift direction.
Kristian