Object Reference > True DBGrid Methods > Item Method |
Item Method
Use the Item method to access a specific member of a True DBGrid collection.
object.Item (index)
Method applies to Columns, Errors, GroupColumns, Layouts, PrintInfos, SelBookmarks, Splits, Styles, and ValueItems collections.
Arguments
index is an expression that specifies the collection member to be accessed.
Return Value
A reference to the specified object.
All collections accept a zero-based index argument. The Columns, GroupColumns, Layouts, PrintInfos, and Styles collections also accept named arguments.
Note
The Item method is not required. The following expressions are equivalent:
TDBGrid1.Columns(0)
TDBGrid1.Columns.Item(0)
Column Object, Columns Collection
Error Object, Errors Collection
Split Object, Splits Collection
Style Object, Styles Collection