Intersoft ClientUI Documentation
SortDescriptions Property
See Also  Send Feedback
Intersoft.Client.UI.Data Namespace > UXGridView Class : SortDescriptions Property






Gets or sets the sort descriptions object that encapsulates the sorting related information.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Columns")>
Public ReadOnly Property SortDescriptions As SortDescriptionCollection
Visual Basic (Usage)Copy Code
Dim instance As UXGridView
Dim value As SortDescriptionCollection
 
value = instance.SortDescriptions
C# 
[CategoryAttribute("Columns")]
public SortDescriptionCollection SortDescriptions {get;}
Delphi 
public read-only property SortDescriptions: SortDescriptionCollection; 
JScript 
CategoryAttribute("Columns")
public function get SortDescriptions : SortDescriptionCollection
Managed Extensions for C++ 
[CategoryAttribute("Columns")]
public: __property SortDescriptionCollection* get_SortDescriptions();
C++/CLI 
[CategoryAttribute("Columns")]
public:
property SortDescriptionCollection^ SortDescriptions {
   SortDescriptionCollection^ get();
}

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>

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.