Object Model > XArrayDB Object |
The XArrayDB object implements a two-dimensional array of arbitrary variants. XArrayDB objects automatically shift their contents when rows (or columns) are inserted or deleted. You can use the Find and QuickSort methods to perform searching and sorting without having to iterate over the array elements yourself.
Unlike the RowBuffer object, you can create one or more standalone XArrayDB objects in code. You can even use XArrayDB outside the context of True DBGrid, as it is packaged as a separate file, XADB8.OCX, which is not dependent upon any of the grid .OCX files.
The XArrayDB object is used as a data source for a TDBGrid or TDBDropDown control in storage mode, which corresponds to a DataMode property setting of 4 - Storage. To connect an XArrayDB object to a storage mode control, set the control's Array property.