Skip to main content
Table of Contents

TTMSFNCDataGridData.ColumnCounting Method

Counts the participating cells of a column over a row range.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Syntax

FMX.TMSFNCDataGridData.hppPascalC++
function ColumnCounting(AColumn: Integer; AFromRow: Integer = -1; AToRow: Integer = -1): Double;
double __fastcall ColumnCounting(int AColumn, int AFromRow = 0xffffffff, int AToRow = 0xffffffff);

Remarks

Hidden rows are counted unless TTMSFNCDataGridDataCalculationOptions.IncludeHiddenRows is False.

Parameters

Name Description
AColumn Zero-based column index.
AFromRow First zero-based row of the range; -1 (the default) selects all rows between the fixed rows.
AToRow Last zero-based row of the range, inclusive; -1 selects the default range.

Returns

The number of normal data rows in the range whose cell is not covered by a merge, including empty cells.