Object Model > TDBGrid Control |
The TDBGrid control is the primary object of True DBGrid. Using its Columns collection, you can create, access, and modify the Column objects that define the mappings between the grid's physical columns and the underlying database fields. Using its Splits collection, you can divide the grid into multiple vertical panes to provide different views of the same data source.
Whether you use the legacy grid (TDBG8.OCX) or the OLE DB grid (TODG8.OCX), the control's class name appears in the Object Browser as TDBGrid.
The DataMode property determines whether the grid connects to a bound data source, fires unbound or application mode events to retrieve data, or operates in storage mode. In bound mode, the DataSource and DataMember properties specify the source database table or query. In storage mode, you can set the Array property in code to use an independent XArrayDB object as a data source.