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

Represents a hierarchical data row in the grid.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewHierarchyRowInfo : GridViewDataRowInfo, IDataItem, IHierarchicalRow, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable

Inheritance: objectGridViewRowInfoGridViewDataRowInfoGridViewHierarchyRowInfo

Implements: IDataItemIDisposableIHierarchicalRowINotifyPropertyChangedINotifyPropertyChangingEx

Inherited Members GridViewDataRowInfo.OnBeginEdit()GridViewRowInfo.IsAttachedStateGridViewRowInfo.IsModifiedStateGridViewRowInfo.IsCurrentStateGridViewRowInfo.IsSelectedStateGridViewRowInfo.IsExpandedStateGridViewRowInfo.IsVisibleStateGridViewRowInfo.AllowResizeStateGridViewRowInfo.SuspendNotificationsStateGridViewRowInfo.IsInitializedStateGridViewRowInfo.LastRowInfoStateGridViewRowInfo.stateGridViewRowInfo.SetParent(GridViewRowInfo)GridViewRowInfo.GetActualHeight(IGridView)GridViewRowInfo.InvalidateRow()GridViewRowInfo.EnsureVisible()GridViewRowInfo.EnsureVisible(bool)GridViewRowInfo.Delete()GridViewRowInfo.GetErrorText(string)GridViewRowInfo.SuspendPropertyNotifications()GridViewRowInfo.ResumePropertyNotifications()GridViewRowInfo.FindParent<T>()GridViewRowInfo.Dispose()GridViewRowInfo.DispatchEvent(KnownEvents, GridEventType, GridEventDispatchMode, object, object[])GridViewRowInfo.GetEventInfo(GridPropertyChangedEventArgs, out GridEventDispatchMode)GridViewRowInfo.OnEndEdit()GridViewRowInfo.ClearCache()GridViewRowInfo.SetRowStateProperty<T>(string, ref T, T)GridViewRowInfo.SetBooleanProperty(string, int, bool)GridViewRowInfo.IsSystemGridViewRowInfo.ErrorTextGridViewRowInfo.GroupGridViewRowInfo.ViewInfoGridViewRowInfo.ViewTemplateGridViewRowInfo.CellsGridViewRowInfo.TagGridViewRowInfo.DataBoundItemGridViewRowInfo.MinHeightGridViewRowInfo.MaxHeightGridViewRowInfo.HeightGridViewRowInfo.IsCurrentGridViewRowInfo.IsSelectedGridViewRowInfo.IsExpandedGridViewRowInfo.IsVisibleGridViewRowInfo.IsPinnedGridViewRowInfo.PinPositionGridViewRowInfo.IsOddGridViewRowInfo.AllowResizeGridViewRowInfo.AllowedStatesGridViewRowInfo.HierarchyLevelGridViewRowInfo.PropertyChangedGridViewRowInfo.PropertyChanging...

Constructors

Initializes a new instance of the GridViewHierarchyRowInfo class.

C#
public GridViewHierarchyRowInfo(GridViewDataRowInfo row)
Parameters:rowGridViewDataRowInfo

The data row information to copy from.

Initializes a new instance of the GridViewHierarchyRowInfo class.

C#
public GridViewHierarchyRowInfo(GridViewInfo owner)
Parameters:ownerGridViewInfo

The owner grid view information.

Properties

Gets or sets the active view for this hierarchy row.

C#
public GridViewInfo ActiveView { get; set; }
Property Value:

The active GridViewInfo.

Gets the child row that is related with this row in a hierarchy.

C#
public GridViewDetailsRowInfo ChildRow { get; }
Property Value:

The GridViewDetailsRowInfo child row.

Gets the child rows collection for this hierarchy row.

C#
public override GridViewChildRowCollection ChildRows { get; }
Property Value:

The collection of child rows.

Overrides: GridViewRowInfo.ChildRows

Gets a value indicating whether the hierarchy row has child views.

C#
public override bool HasChildViews { get; }
Property Value:

True if the row has child views, false otherwise.

Overrides: GridViewRowInfo.HasChildViews

Gets the index of this row.

C#
public override int Index { get; }
Property Value:

The zero-based index of the row.

Overrides: GridViewRowInfo.Index

Gets or sets a value indicating whether the row has child rows and can be expanded.

C#
public virtual bool? IsExpandable { get; set; }
Property Value:

True if expandable, false otherwise, or null if not determined.

Gets the level of the hierarchy for this row.

C#
public int Level { get; }
Property Value:

The hierarchy level.

Gets the parent row for this row.

C#
public override IHierarchicalRow Parent { get; }
Property Value:

The parent hierarchical row.

Overrides: GridViewRowInfo.Parent

Gets the type of the GridRowElement for current GridViewRowInfo.

C#
public override Type RowElementType { get; }
Property Value:

The type of the row element.

Overrides: GridViewRowInfo.RowElementType

Gets the collection of views for this hierarchy row.

C#
public IReadOnlyCollection<GridViewInfo> Views { get; }
Property Value:

A read-only collection of GridViewInfo objects.

Methods

Creates the GridViewDetailsRowInfo for the specified hierarchy row.

C#
protected virtual GridViewDetailsRowInfo CreateGridViewDetailsRowInfo(GridViewHierarchyRowInfo hierarchyRow)
Parameters:hierarchyRowGridViewHierarchyRowInfo

The hierarchy row information.

Returns:

GridViewDetailsRowInfo

A new instance of GridViewDetailsRowInfo.

Ensures that the views collection is properly initialized and updated.

C#
public void EnsureViews()

Determines whether the row has child rows.

C#
public override bool HasChildRows()
Returns:

bool

true if the row has child rows; otherwise, false.

Overrides: GridViewRowInfo.HasChildRows()

Called when a property has changed. Handles expansion state notifications.

C#
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

The property changed event arguments.

Overrides: GridViewDataRowInfo.OnPropertyChanged(PropertyChangedEventArgs)

Called when a property is changing. Handles expansion-related cancellation logic.

C#
protected override void OnPropertyChanging(PropertyChangingEventArgsEx args)
Parameters:argsPropertyChangingEventArgsEx

The property changing event arguments.

Overrides: GridViewRowInfo.OnPropertyChanging(PropertyChangingEventArgsEx)