Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.CanSwapColumn Method

Checks whether two columns can structurally be swapped.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
function CanSwapColumn(AFromColumn, AToColumn: Integer): Boolean;
bool __fastcall CanSwapColumn(int AFromColumn, int AToColumn);

Parameters

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

Returns

True when both indexes are valid and different, and neither column is spanned by a merged cell.