Friday, August 20, 2010

ActiveX UltraGrid Not Sorting With More Than 1000 Rows

I am using an ActiveX UltraGrid on a Visual Basic 6 (VB6) form.  I was having problems with it not sorting.  I researched it for a long time and found that if you have more than 1000 rows the grid will not sort with the default settings.  I had to change the FetchRows property to 3-ssFetchRowsPreloadWithSiblings.

This property is a little tricky to find.  It is on the Categorized tab of the Property Page.  On that tab there is an expandable item called Behavior.  Expand that item and there will be another expandable item called Override.  Expand Override and the FetchRows property is under there.  I changed this property to 3-ssFetchRowsPreloadWithSiblings and it allowed the grid to sort.

No comments: