Xceed DataGrid for Silverlight Documentation
GroupDescriptions Property (DataGridControl)
Example 


Gets a collection of group descriptions that describe how the items in a grid are grouped.
Syntax
'Declaration
 
Public ReadOnly Property GroupDescriptions As ObservableCollection(Of GroupDescription)
'Usage
 
Dim instance As DataGridControl
Dim value As ObservableCollection(Of GroupDescription)
 
value = instance.GroupDescriptions
public ObservableCollection<GroupDescription> GroupDescriptions {get;}

Property Value

A generic ObservableCollection of GroupDescription objects that describe how the items in a grid are grouped.
Remarks

Each group description (see DataGridGroupDescription class) that is added to the GroupDescriptions collection represents one group level. By changing the group descriptions contained in the GroupDescriptions collection, either programmatically or through end-user interactions with a GroupByControl, group levels can be added to or removed from a grid.

Whenever groups are created from the values of a column, those same values will automatically be sorted in ascending order; however, a SortDescription object will not be added to the SortDescriptions collection.

Example
<sldg:DataGridControl.GroupDescriptions>
   <sldg:DataGridGroupDescription PropertyName="ShipCountry" />
   <sldg:DataGridGroupDescription PropertyName="ShipCity" />
</sldg:DataGridControl.GroupDescriptions>
Requirements

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

See Also

Reference

DataGridControl Class
DataGridControl Members

Manipulating Data

Grouping Data

Send Feedback