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

The GroupLevelIndicatorPane class represents a control that contains group-level indicators that indicate the group-level in which an item is located.

Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="PART_GroupLevelIndicatorHost", Type=System.Windows.Controls.Panel)>
Public Class GroupLevelIndicatorPane 
   Inherits Control
   Implements ISupportInitializeIFrameworkInputElementIInputElementIWeakEventListenerIHaveResourcesIAnimatableDUCE.IResource 
C# 
[TemplatePartAttribute(Name="PART_GroupLevelIndicatorHost", Type=System.Windows.Controls.Panel)]
public class GroupLevelIndicatorPane : Control, ISupportInitializeIFrameworkInputElementIInputElementIWeakEventListenerIHaveResourcesIAnimatableDUCE.IResource  

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 hide the group-level indicator pane by creating a style which sets the Visibility property of GroupLevelIndicatorPane objects to Collapsed.
XAMLCopy Code
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> 
  <Grid.Resources> 
     <Style TargetType="{x:Type xcdg:GroupLevelIndicatorPane}"> 
       <Setter Property="Visibility" Value="Collapsed"/> 
     </Style> 
    <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" 
                                    Source="{Binding Source={x:Static Application.Current}, 
                                                      Path=Orders}"> 
 
      <xcdg:DataGridCollectionViewSource.GroupDescriptions> 
        <xcdg:DataGridGroupDescription PropertyName="ShipCountry"/> 
      </xcdg:DataGridCollectionViewSource.GroupDescriptions> 
    </xcdg:DataGridCollectionViewSource> 
  </Grid.Resources> 
  <xcdg:DataGridControl x:Name="OrdersGrid" 
                        ItemsSource="{Binding Source={StaticResource cvs_orders}}"/> 
</Grid>

Remarks


Figure 1: GroupLevelIndicators (red) and GroupLevleIndicatorPane (orang)

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.GroupLevelIndicatorPane

Requirements

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

See Also