New to Telerik UI for WPFStart a free 30-day trial

Represents a control used as a Group header, which is used to expand and collapse its associated rows and groups and display group specific information such as Aggregate functions, sort direction et cetera.

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public class GridViewGroupRow : BaseItemsControl, INotifyPropertyChanged, IGroupRow

Inheritance: objectDataControlBaseItemsControlGridViewGroupRow

Implements: IGroupRowINotifyPropertyChanged

Inherited Members BaseItemsControl.IsGroupingPropertyBaseItemsControl.ItemTemplatePropertyBaseItemsControl.ItemContainerStylePropertyBaseItemsControl.AlternationIndexPropertyBaseItemsControl.HasItemsPropertyBaseItemsControl.AlternationCountPropertyBaseItemsControl.GroupRenderModePropertyBaseItemsControl.OnGroupRenderModeChanged()BaseItemsControl.ItemsControlFromItemContainer(DependencyObject)BaseItemsControl.GetAlternationIndex(DependencyObject)BaseItemsControl.GetItemsOwner(DependencyObject)BaseItemsControl.BringIndexIntoView(int)BaseItemsControl.OnItemsChanged(NotifyCollectionChangedEventArgs)BaseItemsControl.OnAlternationCountChanged(int, int)BaseItemsControl.OnItemTemplateChanged(DataTemplate, DataTemplate)BaseItemsControl.OnItemContainerStyleChanged(Style, Style)BaseItemsControl.OnItemsCollectionChanged(object, NotifyCollectionChangedEventArgs)BaseItemsControl.GroupRenderModeBaseItemsControl.ItemContainerGeneratorBaseItemsControl.ItemContainerStyleBaseItemsControl.AlternationCountBaseItemsControl.ItemTemplateBaseItemsControl.IsGroupingBaseItemsControl.HasItemsDataControl.ItemsSourcePropertyDataControl.CurrentItemPropertyDataControl.SelectedItemPropertyDataControl.CanUserSelectPropertyDataControl.IsSynchronizedWithCurrentItemPropertyDataControl.SelectionChangedEventDataControl.SelectionChangingEventDataControl.OnItemsPropertyChanged(object, PropertyChangedEventArgs)DataControl.Rebind()DataControl.CreateTableDefinition()DataControl.OnPropertyChanged(string)DataControl.OnCurrentItemChanged()DataControl.OnSelectedItemChanged(object, object)DataControl.OnCanUserSelectChanged(bool, bool)DataControl.RaiseSelectionChangedEvent(SelectionChangeEventArgs)DataControl.OnSelectionChanging(SelectionChangingEventArgs)DataControl.InitializeSelection()DataControl.ItemsDataControl.ItemsSourceDataControl.TableDefinitionDataControl.CurrentItemDataControl.SelectedItemDataControl.CanUserSelectDataControl.IsSynchronizedWithCurrentItemDataControl.SelectedItemsDataControl.PropertyChangedDataControl.SelectionChangedDataControl.SelectionChanging...

Constructors

Initializes a new instance of the GridViewGroupRow class.

C#
public GridViewGroupRow()

Fields

AggregateResultsProperty

DependencyProperty

Identifies the AggregateResults dependency property.

C#
public static readonly DependencyProperty AggregateResultsProperty

GroupHeaderTemplateProperty

DependencyProperty

Identifies the GroupHeaderTemplate dependency property.

C#
public static readonly DependencyProperty GroupHeaderTemplateProperty

GroupViewModelProperty

DependencyProperty

Identifies the GroupViewModel property .

C#
public static readonly DependencyProperty GroupViewModelProperty
Field Value:

The identifier for the GroupViewModel property.

HeaderProperty

DependencyProperty

Identifies the Header dependency property.

C#
public static readonly DependencyProperty HeaderProperty

IndentBackgroundProperty

DependencyProperty

Identifies the IndentBackground dependency property.

C#
public static readonly DependencyProperty IndentBackgroundProperty

IsExpandedProperty

DependencyProperty

Identifies the IsExpanded dependency property.

C#
public static readonly DependencyProperty IsExpandedProperty

LevelProperty

DependencyProperty

Identifies the Level dependency property.

C#
public static readonly DependencyProperty LevelProperty

Identifies the RowIndicatorVisibility dependency property.

C#
public static readonly DependencyProperty RowIndicatorVisibilityProperty

Identifies the ShowHeaderAggregates dependency property.

C#
public static readonly DependencyProperty ShowHeaderAggregatesProperty

Properties

Gets the aggregate results.

C#
public AggregateResultCollection AggregateResults { get; }
Property Value:

The aggregate results.

Implements: IGroupRow.AggregateResults

Gets the associated IGroup object.

C#
public IGroup Group { get; }
Property Value:

The associated IGroup. The default value is null

Implements: IGroupRow.Group

Gets or sets the template for the group headers.

C#
public DataTemplate GroupHeaderTemplate { get; set; }
Property Value:

The data template.

Gets or sets the GroupViewModel which provides info typically displayed within the group header. This is a dependency property.

C#
public GroupViewModel GroupViewModel { get; set; }
Property Value:

The default value is null.

Gets or sets the header content of the group.

C#
public object Header { get; set; }
Property Value:

The header.

Implements: IGroupRow.Header

Gets the height of the header.

C#
public double HeaderHeight { get; }
Property Value:

The height of the header.

Gets or sets the Background of the Indent cell.

C#
public Brush IndentBackground { get; set; }

Gets or sets a value indicating whether the group is expanded.

C#
public bool IsExpanded { get; set; }
Property Value:

true if the group is expanded; otherwise, false.

Implements: IGroupRow.IsExpanded

Gets the level of this group row. This is a dependency property.

C#
public int Level { get; }

Implements: IGroupRow.Level

Gets or sets the row indicator visibility.

C#
public Visibility RowIndicatorVisibility { get; set; }
Property Value:

The row indicator visibility.

Gets a value indicating whether this instance handles selection events and participates in the selection mechanism.

C#
protected override bool ShouldHandleSelection { get; }
Property Value:

true if handles selection; otherwise, false.

Overrides: DataControl.ShouldHandleSelection

Gets or sets value indicator if header aggregates are visible or not.

C#
public bool ShowHeaderAggregates { get; set; }

Methods

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSizeReturns:

Size

Brings the given item into view. This is not a recursive method, it will only work for immediate items. The method will not work before the item containers have been generated.

C#
public void BringItemIntoView(object item)
Parameters:itemobject

The item to be brought into view.

When overridden in a derived class, undoes the effects of the PrepareContainerForGroupOverride method.

C#
protected override void ClearContainerForGroupOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

The container element.

itemobject

The item.

Overrides: BaseItemsControl.ClearContainerForGroupOverride(DependencyObject, object)

When overridden in a derived class, undoes the effects of the PrepareContainerForItemOverride method.

C#
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

The container element.

itemobject

The item.

Overrides: BaseItemsControl.ClearContainerForItemOverride(DependencyObject, object)

Creates or identifies the element that is used to display the given item.

C#
protected override DependencyObject GetContainerForItemOverride(object item)
Parameters:itemobjectReturns:

DependencyObject

The element that is used to display the given item.

Overrides: BaseItemsControl.GetContainerForItemOverride(object)

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSizeReturns:

Size

C#
public override void OnApplyTemplate()
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

Called when ItemsSource property has changed.

C#
protected override void OnItemsSourceChanged(object oldValue, object newValue)
Parameters:oldValueobject

The old value.

newValueobject

The new value.

Overrides: BaseItemsControl.OnItemsSourceChanged(object, object)

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForGroupItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObjectitemobject

Overrides: BaseItemsControl.PrepareContainerForGroupItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObjectitemobject

Overrides: BaseItemsControl.PrepareContainerForItemOverride(DependencyObject, object)

Sets the current state for a container that wraps a given data item.

C#
protected override void SetIsCurrent(object item, bool isCurrent)
Parameters:itemobject

The data item.

isCurrentbool

If set to true container is current.

Overrides: DataControl.SetIsCurrent(object, bool)

Sets the selection state for a container that wraps a given data item.

C#
protected override void SetIsSelected(object item, bool isSelected)
Parameters:itemobject

The data item.

isSelectedbool

If set to true container is selected.

Overrides: DataControl.SetIsSelected(object, bool)

C#
public override string ToString()
Returns:

string