Storage Mode > When to Use Storage Mode |
If you need to display and manipulate two-dimensional array data, either one of the following DataMode settings is ideally suited to the task:
3 - Application, which fires events on a cell-by-cell basis,
4 - Storage, which communicates directly with an XArrayDB object.
The choice of which one to use depends upon the life cycle of your application. If you are adding True DBGrid to a mature application that already manages intrinsic Visual Basic arrays, application mode is recommended, since you can easily wrap the ClassicRead and ClassicWrite events around existing data structures. If you are writing a new application from scratch, storage mode is recommended, since it is easier to use and provides sorting and searching capabilities via the QuickSort and Find methods of XArrayDB.