Skip to main content
Table of Contents

TTMSFNCDataGrid.RowSum Method

Returns the sum of the numeric values in a row.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
function RowSum(ARow: Integer; AFromColumn: Integer = -1; AToColumn: Integer = -1): Double;
double __fastcall RowSum(int ARow, int AFromColumn = 0xffffffff, int AToColumn = 0xffffffff);

Remarks

When either bound is -1, all columns between the fixed left and fixed right columns are used. Only base cells are included, and hidden columns are skipped unless Options.Calculations.IncludeHiddenColumns is True.

Parameters

Name Description
ARow Zero-based row index.
AFromColumn First column to include, or -1 (default) for the whole data range.
AToColumn Last column to include, or -1 (default) for the whole data range.

Returns

The sum; cells that cannot be read as numbers are skipped.