[]
        
(Showing Draft Content)

Using Touch Support with Sorting

You can use touch gestures when sorting.

Double-tap the sort indicator to sort. The AllowSort property must be true to use touch gestures. The following image displays a sort indicator.

Sort Indicator

If the user selects a column that contains sorting and filtering indicators, the resize gripper is displayed. The gripper has a higher priority than the filter list or sort operation. Set the HeaderIndicatorPositionAdjusting property to specify the distance between the sorting and filtering indicators and the right edge of the column so that the user can sort or filter the column while the gripper is displayed.

Using Code

Set the HeaderIndicatorPositionAdjusting property.

Example

This example sets the HeaderIndicatorPositionAdjusting property.

FpSpread1.Sheets[0].Columns.Count = 10;
FpSpread1.Sheets[0].Rows.Count = 20;
FpSpread1.Sheets[0].AllowSort = true;
FpSpread1.HeaderIndicatorPositionAdjusting = 5;
FpSpread1.Sheets(0).Columns.Count = 10
FpSpread1.Sheets(0).Rows.Count = 20
FpSpread1.Sheets(0).AllowSort = True
FpSpread1.HeaderIndicatorPositionAdjusting = 5

See Also

Customizing Sorting of Rows of User Data