Xceed DataGrid for Silverlight Documentation
AllowSort Property (Column)


Gets or sets a value indicating whether the data items in a grid can be sorted according to the values of the column through end-user interaction.
Syntax
'Declaration
 
Public Property AllowSort As Nullable(Of Boolean)
'Usage
 
Dim instance As Column
Dim value As Nullable(Of Boolean)
 
instance.AllowSort = value
 
value = instance.AllowSort
public Nullable<bool> AllowSort {get; set;}

Property Value

true if the data items in a grid can be sorted according to the values of the column through end-user interaction; false otherwise. By default, a null reference (Nothing in Visual Basic) indicating that the value is inherited from the column-manager row's AllowColumnSort property or grid's AllowSort property.

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

Column Class
Column Members
AllowColumnSort Property

Manipulating Data

Sorting Data

Send Feedback