TTMSFNCCustomDataGrid.RealToVisualColumn Method
Converts a physical (storage) column index to its position among the columns actually rendered (display order applied, hidden columns skipped).
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
function RealToVisualColumn(AColumn: Integer): Integer;
int __fastcall RealToVisualColumn(int AColumn);
Remarks
Fixed left columns map to their display index; fixed right columns map directly after the last rendered data column. The position is independent of scrolling.
Parameters
| Name | Description |
|---|---|
AColumn |
Physical column index. |
Returns
The on-screen column position, counting the fixed left columns first; -1 when the column is out of range or hidden.