Table of Contents

TTMSFNCDataGrid.CanSwapRow Method

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

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

Syntax

function CanSwapRow(AFromRow, AToRow: Integer): Boolean;

Parameters

Name Description
AFromRow Index of the first row.
AToRow Index of the second row.

Returns

True if the swap is allowed.