Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.SelectCellRange Method

Selects the rectangular cell range defined by the given corner coordinates.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
procedure SelectCellRange(AFromCol, AFromRow, AToCol, AToRow: Integer);
void __fastcall SelectCellRange(int AFromCol, int AFromRow, int AToCol, int AToRow);

Remarks

Indexes are clamped to the non-fixed area and swapped when reversed. The range is adapted to Options.Selection.Mode: row modes extend it to full rows and column modes to full columns (single modes use only the first row or column). The grid then scrolls to the focused cell and raises OnSelectCell.

Parameters

Name Description
AFromCol Zero-based first column index in the range.
AFromRow Zero-based first row index in the range.
AToCol Zero-based last column index in the range.
AToRow Zero-based last row index in the range.