Back to Devexpress

TcxGridDBBandedTableView.GetColumnByFieldName(string) Method

vcl-cxgriddbbandedtableview-dot-tcxgriddbbandedtableview-dot-getcolumnbyfieldname-x28-system-dot-string-x29.md

latest1.5 KB
Original Source

TcxGridDBBandedTableView.GetColumnByFieldName(string) Method

Locates a column by the Fieldname of the data it is displaying.

Declaration

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

Parameters

NameType
AFieldNamestring

Returns

Type
TcxGridDBBandedColumn

Remarks

Use the GetColumnByFieldName method to locate a column displaying a specific data field. The data field name is specified via the AFieldName parameter.

The following code shows how to use the GetColumnByFieldName method:

delphi
...
btvUsersSchedule.GetColumnByFieldName('SATURDAY').Visible := False;
...
cpp
...
btvUsersSchedule->GetColumnByFieldName("SATURDAY")->Visible = False;
...

See Also

TcxCustomGridTableView.FindItemByID

TcxCustomGridTableView.FindItemByName

TcxGridDBBandedTableView Class

TcxGridDBBandedTableView Members

cxGridDBBandedTableView Unit