Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.Lookup Method

Searches the columns from the focused column to the last column for the first cell whose text starts with AValue. If AAutoGoto is True, navigates to the found cell.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

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

Remarks

Columns are searched one at a time with LookupInColumn. The comparison is case-insensitive unless Options.Lookup.CaseSensitive is True.

Parameters

Name Description
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.