Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.SelectCell Method

Selects the given cell, taking shift-state into account for range extension and disjunct multi-selection.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
procedure SelectCell(ACell: TTMSFNCDataGridCellCoord; AShift: TShiftState = []; AMouseDragging: Boolean = False; AIgnoreColumn: Boolean = False; AIgnoreRow: Boolean = False); virtual;
virtual void __fastcall SelectCell(const TTMSFNCDataGridCellCoord &ACell, System::Classes::TShiftState AShift = System::Classes::TShiftState(), bool AMouseDragging = false, bool AIgnoreColumn = false, bool AIgnoreRow = false);

Remarks

This is the method mouse and keyboard handling use. Pass [ssShift] to extend the range from the anchor cell and [ssCtrl] to toggle a cell in disjunct modes. The grid scrolls the cell into view; OnSelectingCell can veto the change and OnSelectCell reports it.

Parameters

Name Description
ACell Cell coordinate to select or focus.
AShift Keyboard shift state used to extend or toggle selection.
AMouseDragging When True, applies selection behavior for an active drag gesture.
AIgnoreColumn When True, ignores the column component during navigation/scroll alignment.
AIgnoreRow When True, ignores the row component during navigation/scroll alignment.