Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.OnCanEditCell Event

Fired to ask whether cell (AColumn, ARow) may be edited.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
OnCanEditCell: TTMSFNCDataGridCanEditCellEvent;
__property TTMSFNCDataGridCanEditCellEvent OnCanEditCell = {read=FOnCanEditCell, write=FOnCanEditCell};

Remarks

Raised when a mouse or keyboard action (click, typing, Tab or Enter navigation) is about to start editing; a direct EditCell call does not raise it. Use it for dynamic, data-dependent read-only rules; for static rules use ReadOnlys or the column's read-only setting.

Parameters

Name Description
Sender Renderer that fired the event.
AColumn Zero-based column index of the cell.
ARow Zero-based row index of the cell.
ACanEdit Set to False to prevent editing the cell.