Skip to main content
Table of Contents

TTMSFNCDataGrid.ColumnByName Method

Finds the first column whose Name equals the given value.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
function ColumnByName(AName: string): TTMSFNCDataGridColumn;
TTMSFNCDataGridColumn* __fastcall ColumnByName(System::UnicodeString AName);

Parameters

Name Description
AName Column name to look up; the comparison is exact and case-sensitive.

Returns

The matching column, or nil. The column is owned by Columns; do not free it.