Intersoft ClientUI Documentation
SortDescriptions Property (UXGridView)



Gets or sets the sort descriptions object that encapsulates the sorting related information.
Syntax
<CategoryAttribute("Columns")>
Public ReadOnly Property SortDescriptions As SortDescriptionCollection
Dim instance As UXGridView
Dim value As SortDescriptionCollection
 
value = instance.SortDescriptions
[CategoryAttribute("Columns")]
public SortDescriptionCollection SortDescriptions {get;}
[CategoryAttribute("Columns")]
public:
property SortDescriptionCollection^ SortDescriptions {
   SortDescriptionCollection^ get();
}
Remarks

To implement a predefined sorting, you specify the SortDescriptions or SortDescriptors property in XAML depending on the value of the QueryOperation property. The SortDescriptions is used when the control is configured with client data operation, while the SortDescriptors is used for server data operation.

Example

The following example shows how to implement predefined sorting with client data operation.

XAML
Copy Code
xmlns:Intersoft="http://intersoft.clientui.com/schemas"
xmlns:ComponentModel="clr-namespace:System.ComponentModel;assembly=System.Windows"

<Intersoft:UXGridView AutoGenerateColumns="False" ItemsSource="{Binding Products}">
    <Intersoft:UXGridView.SortDescriptions>
        <ComponentModel:SortDescription PropertyName="ProductName" Direction="Ascending"/>
    </Intersoft:UXGridView.SortDescriptions>                               
</Intersoft:UXGridView>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXGridView Class
UXGridView Members

Send Feedback