Table of Contents

TTMSFNCDataGrid.RealToVisualColumn Method

Converts a physical storage column index to the 0-based column index in the currently rendered output (reorder + hidden applied). Returns -1 when the column is hidden. Fixed columns map unchanged.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

function RealToVisualColumn(AColumn: Integer): Integer;

Parameters

Name Description
AColumn Physical storage column index.

Returns

Visual (rendered) column index, or -1 if the column is not currently rendered.