Object Model > Column Object, Columns Collection |
Each column within a TDBGrid control, TDBDropDown control, or Split object is represented by a Column object. When a grid or drop-down control is bound to a database, each Column object is usually associated with a database field, although True DBGrid also supports unbound columns in bound mode. When a control is first created, it contains two Column objects by default.
The TDBGrid control, the TDBDropDown control, and the Split object all maintain a Columns collection to hold and manipulate Column objects. This collection is accessed using the Columns property.