Xceed DataGrid for Silverlight Documentation
AllowSort Property (DataGridControl)


Gets or sets a value indicating whether the data items in a grid can be sorted through end-user interaction.
Syntax
'Declaration
 
Public Property AllowSort As Boolean
'Usage
 
Dim instance As DataGridControl
Dim value As Boolean
 
instance.AllowSort = value
 
value = instance.AllowSort
public bool AllowSort {get; set;}

Property Value

true if columns can be sorted through end-user interaction; false otherwise. By default, true.
Remarks

If a column's AllowSort property has been explicitly defined, it will override the value defined by the grid's AllowSort property or a column-manager row's AllowColumnSort property.

If the underlying data source does not permit sorting the data items will not be sortable, regardless of the value of the AllowSort and AllowColumnSort properties.

The AllowSort and AllowColumnSort properties only affect end-user interaction and do not prevent columns from being sorted programmatically.

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridControl Class
DataGridControl Members

Manipulating Data

Sorting Data

Send Feedback