Defines whether it is possible to sort data in the control.
Remarks
Property specifies if user is able to sort data by the values of a column in the data source. Sorting is appropriate for clear presentation of data and faster search among data. It is a useful feature that speeds up work process by providing the user better overview and overall handling with large amount of data.
If property is set to True, records can be sorted by the selected field or column. Sorting can be done in an ascending order or in a descending order.
If selected field is of numeric data type, sorting is done by the ascending or descending value number. If selected field is of string data type, ascending order means strings arranged in order according to the alphabet. If selected field is of date time data type, ascending order means oldest first and descending order means latest first.
If property is set to False, buttons for sorting fields or columns are disabled. The default value for this property is True.
Example (MxSpace)
To see the defined AllowSort property on a control (GridEdit) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click WorkOrderManagePart.cs. Click the GridEdit control for displaying work orders and open Property Window. See the value True defined in AllowSort property.
To define AllowSort property
- In Solution Explorer open MxPart component (WorkOrderManagePart) which contains the control (GridEdit).
- Select the desired control (GridEdit) on the canvas.
- Open Property Window.
- In section GridDisplay in AllowSort property select the desired value (True).
MxPart
AllowFilter
AllowGrouping