Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.ColumnMax Method

Returns the largest numeric value in a column.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Syntax

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

Remarks

The same row selection as ColumnSum applies; cells that cannot be read as numbers are skipped.

Parameters

Name Description
AColumn Zero-based column index.
AFromRow First row to include, or -1 for the whole data range.
AToRow Last row to include, or -1 for the whole data range.

Returns

Maximum value.