TTMSFNCDataGridCore.RealToVisualColumn Method
Converts a physical storage column index to the 0-based column index in the currently rendered output (reorder applied, and hidden columns skipped). Returns -1 when the column is hidden.
API unit family: TMSFNCDataGridCore
Declaring type: TTMSFNCDataGridCore
Syntax
function RealToVisualColumn(AColumn: Integer): Integer;
Remarks
This is distinct from RealToDisplayColumn, which only accounts for reorder. Use this when you need the visual column position (e.g. the slot the user sees on screen). Fixed left/right columns always render and map to their display-order index unchanged.
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index used by the operation. |
Returns
The resulting zero-based index or count.