Vcl.DBGrids.TCustomDBGrid.ValidFieldIndex
Delphi
function ValidFieldIndex(FieldIndex: Integer): Boolean;
C++
bool __fastcall ValidFieldIndex(int FieldIndex);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Indicates whether an index into the columns array refers to a valid field in the dataset.
Call ValidFieldIndex to determine whether a column displays data from a field in the dataset. ValidFieldIndex returns true if the column is associated with a database field. ValidFieldIndex returns false if the column is a calculated field or if the field for the column is undefined.