Skip to main content

TcxGridDBBandedTableView.GetColumnByFieldName(string) Method

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

Declaration

function GetColumnByFieldName(const AFieldName: string): TcxGridDBBandedColumn;

Parameters

Name Type
AFieldName string

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:

...
btvUsersSchedule.GetColumnByFieldName('SATURDAY').Visible := False;
...
See Also