Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.LookupInColumn Method

Searches the specified column, from the top, for the first cell whose text starts with AValue.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
function LookupInColumn(AColumn: Integer; AValue: string; AAllRows: Boolean = False; AAutoGoto: Boolean = False): TTMSFNCDataGridCellCoord;
TTMSFNCDataGridCellCoord __fastcall LookupInColumn(int AColumn, System::UnicodeString AValue, bool AAllRows = false, bool AAutoGoto = false);

Remarks

The comparison is case-insensitive unless Options.Lookup.CaseSensitive is True.

Parameters

Name Description
AColumn Zero-based column index to search.
AValue Text prefix to search for. HTML tags in cell text are stripped before comparing.
AAllRows When True, searches every row below the fixed top rows, including the fixed bottom rows; when False, searches the data rows only.
AAutoGoto When True, sets FocusedCell to the match.

Returns

The coordinate of the first match, or (-1, -1) when no match is found.