TTMSFNCDataGridCore.RealToVisualRow Method
Converts a physical storage row index to the 0-based row index in the currently rendered output (sort applied, and filtered/hidden rows skipped). Returns -1 when the row is filtered or hidden.
API unit family: TMSFNCDataGridCore
Declaring type: TTMSFNCDataGridCore
Syntax
function RealToVisualRow(ARow: Integer): Integer;
Remarks
This is distinct from RealToDisplayRow, which only accounts for sort/reorder. Use this when you need the visual row position (e.g. the slot the user sees on screen). Fixed top/bottom rows always render and map to their display-order index unchanged. Note: not to be confused with VisibleRowCount, which refers to viewport (scroll-window) extent.
Parameters
| Name | Description |
|---|---|
ARow |
Zero-based row index used by the operation. |
Returns
The resulting zero-based index or count.