Spread Windows Forms 12.0 Product Documentation
Using Touch Support when Sorting
Spread Windows Forms 12.0 Product Documentation > Developer's Guide > Using Touch Support with the Component > Using Touch Support > Using Touch Support when Sorting

You can use touch gestures when sorting.

Tap the sort indicator to sort. The AllowAutoSort property must be true to use touch gestures. The following image displays sort indicators.

Set the ZoomFactor property to change the size of the control. Some touch gestures are easier to use if the control is zoomed.

Note: 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

The following example allows sorting and zooms the control.

CS
Copy Code
fpSpread1.ActiveSheet.Columns[0, 3].AllowAutoSort = true;
fpSpread1.ActiveSheet.ZoomFactor = 2;
VB
Copy Code
fpSpread1.ActiveSheet.Columns(0, 3).AllowAutoSort = True
fpSpread1.ActiveSheet.ZoomFactor = 2
See Also