Table of Contents

TTMSFNCDataGrid.CanSwapColumn Method

Checks whether swapping two columns is permitted by grid options and events.

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

Syntax

function CanSwapColumn(AFromColumn, AToColumn: Integer): Boolean;

Parameters

Name Description
AFromColumn Index of the first column.
AToColumn Index of the second column.

Returns

True if the swap is allowed.