skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewGroupRow

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.

Inheritance
System.Object
DataControl
BaseItemsControl
GridViewGroupRow
Inherited Members
BaseItemsControl.IsGroupingProperty
BaseItemsControl.ItemTemplateProperty
BaseItemsControl.ItemContainerStyleProperty
BaseItemsControl.AlternationIndexProperty
BaseItemsControl.HasItemsProperty
BaseItemsControl.AlternationCountProperty
BaseItemsControl.GroupRenderModeProperty
BaseItemsControl.OnGroupRenderModeChanged()
BaseItemsControl.ItemsControlFromItemContainer(DependencyObject)
BaseItemsControl.GetAlternationIndex(DependencyObject)
BaseItemsControl.GetItemsOwner(DependencyObject)
BaseItemsControl.BringIndexIntoView(Int32)
BaseItemsControl.OnItemsChanged(NotifyCollectionChangedEventArgs)
BaseItemsControl.OnAlternationCountChanged(Int32, Int32)
BaseItemsControl.OnItemTemplateChanged(DataTemplate, DataTemplate)
BaseItemsControl.OnItemContainerStyleChanged(Style, Style)
BaseItemsControl.OnItemsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
BaseItemsControl.GroupRenderMode
BaseItemsControl.ItemContainerGenerator
BaseItemsControl.ItemContainerStyle
BaseItemsControl.AlternationCount
BaseItemsControl.ItemTemplate
BaseItemsControl.IsGrouping
BaseItemsControl.HasItems
DataControl.ItemsSourceProperty
DataControl.CurrentItemProperty
DataControl.SelectedItemProperty
DataControl.CanUserSelectProperty
DataControl.IsSynchronizedWithCurrentItemProperty
DataControl.SelectionChangedEvent
DataControl.SelectionChangingEvent
DataControl.OnItemsPropertyChanged(Object, PropertyChangedEventArgs)
DataControl.Rebind()
DataControl.CreateTableDefinition()
DataControl.OnPropertyChanged(String)
DataControl.OnCurrentItemChanged()
DataControl.OnSelectedItemChanged(Object, Object)
DataControl.OnCanUserSelectChanged(Boolean, Boolean)
DataControl.RaiseSelectionChangedEvent(SelectionChangeEventArgs)
DataControl.OnSelectionChanging(SelectionChangingEventArgs)
DataControl.InitializeSelection()
DataControl.Items
DataControl.ItemsSource
DataControl.TableDefinition
DataControl.CurrentItem
DataControl.SelectedItem
DataControl.CanUserSelect
DataControl.IsSynchronizedWithCurrentItem
DataControl.SelectedItems
DataControl.PropertyChanged
DataControl.SelectionChanged
DataControl.SelectionChanging
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll

Syntax

public class GridViewGroupRow : BaseItemsControl, INotifyPropertyChanged, ISelectorInternal, IGeneratorHost, IGroupsProvider, IGroupRow, GridViewVirtualizingPanel.IProvideStackingSize, ILayoutObserver, IScrollContentElement

Constructors

GridViewGroupRow()

Initializes a new instance of the GridViewGroupRow class.

Declaration
public GridViewGroupRow()

Fields

AggregateResultsProperty

Identifies the AggregateResults dependency property.

Declaration
public static readonly DependencyProperty AggregateResultsProperty
Field Value
System.Windows.DependencyProperty

GroupHeaderTemplateProperty

Identifies the GroupHeaderTemplate dependency property.

Declaration
public static readonly DependencyProperty GroupHeaderTemplateProperty
Field Value
System.Windows.DependencyProperty

GroupViewModelProperty

Identifies the GroupViewModel property .

Declaration
public static readonly DependencyProperty GroupViewModelProperty
Field Value
System.Windows.DependencyProperty

The identifier for the GroupViewModel property.

HeaderProperty

Identifies the Header dependency property.

Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
System.Windows.DependencyProperty

IndentBackgroundProperty

Identifies the IndentBackground dependency property.

Declaration
public static readonly DependencyProperty IndentBackgroundProperty
Field Value
System.Windows.DependencyProperty

IsExpandedProperty

Identifies the IsExpanded dependency property.

Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
System.Windows.DependencyProperty

LevelProperty

Identifies the Level dependency property.

Declaration
public static readonly DependencyProperty LevelProperty
Field Value
System.Windows.DependencyProperty

RowIndicatorVisibilityProperty

Identifies the RowIndicatorVisibility dependency property.

Declaration
public static readonly DependencyProperty RowIndicatorVisibilityProperty
Field Value
System.Windows.DependencyProperty

ShowHeaderAggregatesProperty

Identifies the ShowHeaderAggregates dependency property.

Declaration
public static readonly DependencyProperty ShowHeaderAggregatesProperty
Field Value
System.Windows.DependencyProperty

Properties

AggregateResults

Gets the aggregate results.

Declaration
public AggregateResultCollection AggregateResults { get; }
Property Value
AggregateResultCollection

The aggregate results.

Implements
IGroupRow.AggregateResults

Group

Gets the associated IGroup object.

Declaration
public IGroup Group { get; }
Property Value
IGroup

The associated IGroup. The default value is null

Implements
IGroupRow.Group

GroupHeaderTemplate

Gets or sets the template for the group headers.

Declaration
public DataTemplate GroupHeaderTemplate { get; set; }
Property Value
System.Windows.DataTemplate

The data template.

GroupViewModel

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

Declaration
public GroupViewModel GroupViewModel { get; set; }
Property Value
GroupViewModel

The default value is null.

Header

Gets or sets the header content of the group.

Declaration
public object Header { get; set; }
Property Value
System.Object

The header.

Implements
IGroupRow.Header

HeaderHeight

Gets the height of the header.

Declaration
public double HeaderHeight { get; }
Property Value
System.Double

The height of the header.

IndentBackground

Gets or sets the Background of the Indent cell.

Declaration
public Brush IndentBackground { get; set; }
Property Value
System.Windows.Media.Brush

IsExpanded

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

Declaration
public bool IsExpanded { get; set; }
Property Value
System.Boolean

true if the group is expanded; otherwise, false.

Implements
IGroupRow.IsExpanded

Level

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

Declaration
public int Level { get; }
Property Value
System.Int32

Implements
IGroupRow.Level

RowIndicatorVisibility

Gets or sets the row indicator visibility.

Declaration
public Visibility RowIndicatorVisibility { get; set; }
Property Value
System.Windows.Visibility

The row indicator visibility.

ShouldHandleSelection

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

Declaration
protected override bool ShouldHandleSelection { get; }
Property Value
System.Boolean

true if handles selection; otherwise, false.

Overrides
DataControl.ShouldHandleSelection

ShowHeaderAggregates

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

Declaration
public bool ShowHeaderAggregates { get; set; }
Property Value
System.Boolean

Methods

ArrangeOverride(Size)

Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size finalSize

Returns
System.Windows.Size

BringItemIntoView(Object)

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.

Declaration
public void BringItemIntoView(object item)
Parameters
System.Object item

The item to be brought into view.

ClearContainerForGroupOverride(DependencyObject, Object)

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

Declaration
protected override void ClearContainerForGroupOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject element

The container element.

System.Object item

The item.

Overrides
BaseItemsControl.ClearContainerForGroupOverride(DependencyObject, Object)

ClearContainerForItemOverride(DependencyObject, Object)

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

Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject element

The container element.

System.Object item

The item.

Overrides
BaseItemsControl.ClearContainerForItemOverride(DependencyObject, Object)

GetContainerForItemOverride(Object)

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

Declaration
protected override DependencyObject GetContainerForItemOverride(object item)
Parameters
System.Object item

Returns
System.Windows.DependencyObject

The element that is used to display the given item.

Overrides
BaseItemsControl.GetContainerForItemOverride(Object)

MeasureOverride(Size)

Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size availableSize

Returns
System.Windows.Size

OnApplyTemplate()

Declaration
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

OnInitialized(EventArgs)

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

OnItemsSourceChanged(Object, Object)

Called when ItemsSource property has changed.

Declaration
protected override void OnItemsSourceChanged(object oldValue, object newValue)
Parameters
System.Object oldValue

The old value.

System.Object newValue

The new value.

Overrides
BaseItemsControl.OnItemsSourceChanged(Object, Object)

PrepareContainerForGroupItemOverride(DependencyObject, Object)

Prepares the specified element to display the specified item.

Declaration
protected override void PrepareContainerForGroupItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject element

System.Object item

Overrides
BaseItemsControl.PrepareContainerForGroupItemOverride(DependencyObject, Object)

PrepareContainerForItemOverride(DependencyObject, Object)

Prepares the specified element to display the specified item.

Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject element

System.Object item

Overrides
BaseItemsControl.PrepareContainerForItemOverride(DependencyObject, Object)

SetIsCurrent(Object, Boolean)

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

Declaration
protected override void SetIsCurrent(object item, bool isCurrent)
Parameters
System.Object item

The data item.

System.Boolean isCurrent

If set to true container is current.

Overrides
DataControl.SetIsCurrent(Object, Boolean)

SetIsSelected(Object, Boolean)

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

Declaration
protected override void SetIsSelected(object item, bool isSelected)
Parameters
System.Object item

The data item.

System.Boolean isSelected

If set to true container is selected.

Overrides
DataControl.SetIsSelected(Object, Boolean)

ToString()

Declaration
public override string ToString()
Returns
System.String

Extension Methods

GridViewDataControlExtensions.FindGroupByItem(BaseItemsControl, Object)
CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.