| Visual Basic (Declaration) | |
|---|---|
Public Class GroupHeaderControl Inherits ContentControl Implements INotifyPropertyChanged, ISupportInitialize, IFrameworkInputElement, IInputElement, IAddChild, IHaveResources, IAnimatable, DUCE.IResource, IDataGridItemContainer | |
| C# | |
|---|---|
public class GroupHeaderControl : ContentControl, INotifyPropertyChanged, ISupportInitialize, IFrameworkInputElement, IInputElement, IAddChild, IHaveResources, IAnimatable, DUCE.IResource, IDataGridItemContainer | |
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 force the GroupByControl and ColumnManagerRow contained in a grid's fixed header section to occupy all the available width.
By default, items in the fixed header and footer sections will only span across the width occupied by the columns.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> | |
The following example demonstrates how to provide, through a style, a new GroupHeaderControl template.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> | |
The following example demonstrates how to change the information displayed in each GroupHeaderControl by creating an implicit DataTemplate targeting the Group data type.
| XAML | Copy Code |
|---|---|
<Grid> | |
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
Xceed.Wpf.DataGrid.GroupHeaderControl
Supported Operating Systems: Windows Server 2003 Service Pack 1; Windows Vista; Windows XP Service Pack 2
Reference
GroupHeaderControl MembersXceed.Wpf.DataGrid Namespace
Basic Concepts
Grouping DataObject Model Overview: Other Classes



Copy Code