Back to Devexpress

TcxGridDBTableView.GetColumnByFieldName(string) Method

vcl-cxgriddbtableview-dot-tcxgriddbtableview-dot-getcolumnbyfieldname-x28-system-dot-string-x29.md

latest1.3 KB
Original Source

TcxGridDBTableView.GetColumnByFieldName(string) Method

Locates the column displaying a particular field’s values.

Declaration

delphi
function GetColumnByFieldName(const AFieldName: string): TcxGridDBColumn;

Parameters

NameType
AFieldNamestring

Returns

Type
TcxGridDBColumn

Remarks

Call this function to locate the column displaying values from the specified data set field. The field name is specified via the AFieldName parameter. If a column corresponding to the specified field name does not exist or the data set contains no field with the specified name, then this method returns nil.

See Also

TcxGridDBColumn

TcxCustomGridTableView.FindItemByID

TcxCustomGridTableView.FindItemByName

TcxGridDBColumn.DataBinding

TcxGridDBTableView Class

TcxGridDBTableView Members

cxGridDBTableView Unit