RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.ValidFieldIndex Method

Indicates whether an index into the columns array refers to a valid field in the dataset.

Pascal
function ValidFieldIndex(FieldIndex: Integer): Boolean;
C++
__fastcall Boolean ValidFieldIndex(int FieldIndex);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!