Skip to main content
Table of Contents

TTMSFNCDataGridCore.IsCellValid Method

Returns True when the cell's column and row indexes are within the current grid bounds.

API unit family: TMSFNCDataGridCore Declaring type: TTMSFNCDataGridCore

Overloads

Overload 1

Returns True when the cell's column and row indexes are within the current grid bounds.

FMX.TMSFNCDataGridCore.hppPascalC++
function IsCellValid(ACell: TTMSFNCDataGridCellCoord): Boolean; overload;
bool __fastcall IsCellValid(const TTMSFNCDataGridCellCoord &ACell)/* overload */;

Remarks

Only the bounds are checked; hidden, filtered and fixed cells are still valid.

Parameters

Name Description
ACell Cell to validate.

Returns

True when 0 <= Column < ColumnCount and 0 <= Row < RowCount.

Overload 2

Returns True when and are within the current grid bounds.

FMX.TMSFNCDataGridCore.hppPascalC++
function IsCellValid(AColumn, ARow: Integer): Boolean; overload;
bool __fastcall IsCellValid(int AColumn, int ARow)/* overload */;

Parameters

Name Description
AColumn Column index to validate.
ARow Row index to validate.

Returns

True when 0 <= AColumn < ColumnCount and 0 <= ARow < RowCount.