ComponentOne VSFlexGrid 8.0
There are several ways to add data to a VSFlexGrid control. Which one is the fastest?

The fastest way to add data is using the TextMatrix property, and the slowest is using the AddItem method.

If the data is already loaded in an array of Variants, then the BindToArray method is even faster. (BindToArray does not actually load the data, it just tells the control where the data is).

Whatever method you choose, make sure you set the Redraw property to False before you start populating the grid, and restore its value when you are done. This may increase speed by an order of magnitude, especially when using AddItem.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback