TTMSFNCCustomDataGrid.XYToRow Method
Returns the zero-based row index of the row under the given pixel coordinate.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
function XYToRow(X, Y: Double): Integer;
Parameters
| Name | Description |
|---|---|
X |
Horizontal pixel offset relative to the control. |
Y |
Vertical pixel offset relative to the control. |
Returns
Zero-based row index, or -1 if outside grid rows.