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.

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

cs-api-definition
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

GridViewGroupRow()

Initializes a new instance of the GridViewGroupRow class.

Declaration

cs-api-definition
public GridViewGroupRow()

Fields

AggregateResultsProperty

Identifies the AggregateResults dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AggregateResultsProperty

Field Value

DependencyProperty

GroupHeaderTemplateProperty

Identifies the GroupHeaderTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GroupHeaderTemplateProperty

Field Value

DependencyProperty

GroupViewModelProperty

Identifies the GroupViewModel property .

Declaration

cs-api-definition
public static readonly DependencyProperty GroupViewModelProperty

Field Value

DependencyProperty

The identifier for the GroupViewModel property.

HeaderProperty

Identifies the Header dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderProperty

Field Value

DependencyProperty

IndentBackgroundProperty

Identifies the IndentBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IndentBackgroundProperty

Field Value

DependencyProperty

IsExpandedProperty

Identifies the IsExpanded dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsExpandedProperty

Field Value

DependencyProperty

LevelProperty

Identifies the Level dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LevelProperty

Field Value

DependencyProperty

RowIndicatorVisibilityProperty

Identifies the RowIndicatorVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RowIndicatorVisibilityProperty

Field Value

DependencyProperty

ShowHeaderAggregatesProperty

Identifies the ShowHeaderAggregates dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowHeaderAggregatesProperty

Field Value

DependencyProperty

Properties

AggregateResults

Gets the aggregate results.

Declaration

cs-api-definition
public AggregateResultCollection AggregateResults { get; }

Property Value

AggregateResultCollection

The aggregate results.

Implements IGroupRow.AggregateResults

Group

Gets the associated IGroup object.

Declaration

cs-api-definition
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

cs-api-definition
public DataTemplate GroupHeaderTemplate { get; set; }

Property Value

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

cs-api-definition
public GroupViewModel GroupViewModel { get; set; }

Property Value

GroupViewModel

The default value is null.

Header

Gets or sets the header content of the group.

Declaration

cs-api-definition
public object Header { get; set; }

Property Value

object

The header.

Implements IGroupRow.Header

HeaderHeight

Gets the height of the header.

Declaration

cs-api-definition
public double HeaderHeight { get; }

Property Value

double

The height of the header.

IndentBackground

Gets or sets the Background of the Indent cell.

Declaration

cs-api-definition
public Brush IndentBackground { get; set; }

Property Value

Brush

IsExpanded

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

Declaration

cs-api-definition
public bool IsExpanded { get; set; }

Property Value

bool

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

cs-api-definition
public int Level { get; }

Property Value

int

Implements IGroupRow.Level

RowIndicatorVisibility

Gets or sets the row indicator visibility.

Declaration

cs-api-definition
public Visibility RowIndicatorVisibility { get; set; }

Property Value

Visibility

The row indicator visibility.

ShouldHandleSelection

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

Declaration

cs-api-definition
protected override bool ShouldHandleSelection { get; }

Property Value

bool

true if handles selection; otherwise, false.

Overrides DataControl.ShouldHandleSelection

ShowHeaderAggregates

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

Declaration

cs-api-definition
public bool ShowHeaderAggregates { get; set; }

Property Value

bool

Methods

ArrangeOverride(Size)

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

Returns

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

cs-api-definition
public void BringItemIntoView(object item)

Parameters

item

object

The item to be brought into view.

ClearContainerForGroupOverride(DependencyObject, object)

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

Declaration

cs-api-definition
protected override void ClearContainerForGroupOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

The container element.

item

object

The item.

Overrides BaseItemsControl.ClearContainerForGroupOverride(DependencyObject, object)

ClearContainerForItemOverride(DependencyObject, object)

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

Declaration

cs-api-definition
protected override void ClearContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

The container element.

item

object

The item.

Overrides BaseItemsControl.ClearContainerForItemOverride(DependencyObject, object)

GetContainerForItemOverride(object)

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

Declaration

cs-api-definition
protected override DependencyObject GetContainerForItemOverride(object item)

Parameters

item

object

Returns

DependencyObject

The element that is used to display the given item.

Overrides BaseItemsControl.GetContainerForItemOverride(object)

MeasureOverride(Size)

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

Returns

Size

OnApplyTemplate()

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnInitialized(EventArgs)

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

OnItemsSourceChanged(object, object)

Called when ItemsSource property has changed.

Declaration

cs-api-definition
protected override void OnItemsSourceChanged(object oldValue, object newValue)

Parameters

oldValue

object

The old value.

newValue

object

The new value.

Overrides BaseItemsControl.OnItemsSourceChanged(object, object)

PrepareContainerForGroupItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

Declaration

cs-api-definition
protected override void PrepareContainerForGroupItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

item

object

Overrides BaseItemsControl.PrepareContainerForGroupItemOverride(DependencyObject, object)

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

Declaration

cs-api-definition
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

item

object

Overrides BaseItemsControl.PrepareContainerForItemOverride(DependencyObject, object)

SetIsCurrent(object, bool)

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

Declaration

cs-api-definition
protected override void SetIsCurrent(object item, bool isCurrent)

Parameters

item

object

The data item.

isCurrent

bool

If set to true container is current.

Overrides DataControl.SetIsCurrent(object, bool)

SetIsSelected(object, bool)

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

Declaration

cs-api-definition
protected override void SetIsSelected(object item, bool isSelected)

Parameters

item

object

The data item.

isSelected

bool

If set to true container is selected.

Overrides DataControl.SetIsSelected(object, bool)

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string