Table of Contents

TTMSFNCCustomDataGrid.CanSwapColumn Method

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

API unit family: TMSFNCDataGrid Declaring type: 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.