Accessing columns
Less than 1 minute
Accessing grid columns
You can use the following properties and methods for accessing the grid columns:
DBGridEh.Columns
property Columns: TDBGridColumnsEh;
The main collection of columns
DBGridEh.VisibleColumns
property VisibleColumns: TColumnsEhList;
List of visible columns. The list is automatically updated when you change the basic list or change the columns visible columns
property DBGridEh.FieldColumns[const FieldName: String]: TColumnEh
Search a column by name field. If the column, which TColumnEh.FieldName = FieldName is not found, an exception is thrown.
function FindFieldColumn(const FieldName: String): TColumnEh;
Search column name field. If the column, which TColumnEh.FieldName = FieldName is not found then it returns nil.
property SortMarkedColumns: TColumnsEhList
List of columns where sorting markers are set with the TColumnEh.Title.SortMarker property.
DBGridEh.VisibleColumns
property DBGridEh.VisibleColumns: TColumnsEhList
List of visible columns. The list is automatically updated when you change the basic list or change the columns visible columns.
property DBGridEh.FieldColumns[const FieldName: String]: TColumnEhSearch a column by name field. If the column, which TColumnEh.FieldName = FieldName is not found, an exception is thrown.
function FindFieldColumn(const FieldName: String): TColumnEh;Search column name field. If the column, which TColumnEh.FieldName = FieldName is not found then it returns nil.
property SortMarkedColumns: TColumnsEhListList of columns wher sorting markers are set with the TColumnEh.Title.SortMarker property.
