Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.XYToRow Method

Returns the row of the cell under a point.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
function XYToRow(X, Y: Double): Integer;
int __fastcall XYToRow(double X, double Y);

Parameters

Name Description
X Horizontal position relative to the control; needed because the hit test is cell based.
Y Vertical position relative to the control.

Returns

The display row of XYToCell, or -1 when the point is not over a cell.