Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.ColumnIndexByHeader Method

Returns the index of the first column whose Header equals the given text.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
function ColumnIndexByHeader(AHeader: string): Integer;
int __fastcall ColumnIndexByHeader(System::UnicodeString AHeader);

Parameters

Name Description
AHeader Header caption to search for (exact, case-sensitive).

Returns

Zero-based index in Columns, or -1 when not found.