TTMSFNCDataGridCore.RealToVisualRow Method
Converts a physical storage row index to its position among the rows actually rendered (display order applied, hidden and filtered rows skipped).
API unit family: TMSFNCDataGridCore
Declaring type: TTMSFNCDataGridCore
Syntax
function RealToVisualRow(ARow: Integer): Integer;
int __fastcall RealToVisualRow(int ARow);
Remarks
Distinct from RealToDisplayRow, which only accounts for reordering and sorting. Fixed top rows map to their display index unchanged; fixed bottom rows map to positions directly after the last rendered data row. The position is independent of scrolling and is not related to VisibleRowCount. The calculation walks all preceding rows, so avoid calling it per row in large loops.
Parameters
| Name | Description |
|---|---|
ARow |
Row index in storage order. |
Returns
The on-screen row position, counting the fixed top rows first; -1 when is out of range or the row is hidden or filtered out.