HierarchicalGroupByControl Class
See Also  Members   Example 
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace : HierarchicalGroupByControl Class

Represents a control that displays hierarchical information about how the data items in a grid and any of its child details are grouped and sorted as well as allows the end user to change how the items are grouped and sorted.

Syntax

Visual Basic (Declaration) 
Public Class HierarchicalGroupByControl 
   Inherits Control
   Implements INotifyPropertyChangedISupportInitializeIFrameworkInputElementIInputElementIHaveResourcesIAnimatableDUCE.IResource, IDropTarget 
C# 
public class HierarchicalGroupByControl : Control, INotifyPropertyChangedISupportInitializeIFrameworkInputElementIInputElementIHaveResourcesIAnimatableDUCE.IResource, IDropTarget  

Example

All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to provide an implicit style targeting the HierarchicalGroupByControl class that changes the value of the NoGroupContent property to display Hello World rather than Drag a column header hear to group by that column..
XAMLCopy Code
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" 
 xmlns:local="clr-namespace:Xceed.Wpf.Documentation"> 
  <Grid.Resources> 
   <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" 
                                      Source="{Binding Source={x:Static Application.Current}, 
                                                Path=Orders}"/> 
   <Style TargetType="{x:Type xcdg:HierarchicalGroupByControl}"> 
      <Setter Property="NoGroupContent" 
              Value="Hello World" /> 
   </Style> 
  </Grid.Resources> 
  <xcdg:DataGridControl x:Name="OrdersGrid" 
                      ItemsSource="{Binding Source={StaticResource cvs_orders}}"/> 
  
</Grid>

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     Xceed.Wpf.DataGrid.HierarchicalGroupByControl

Requirements

Supported Operating Systems: Windows Server 2003 Service Pack 1; Windows Vista; Windows XP Service Pack 2

See Also