Class
GridViewHierarchyRowInfo

Represents a hierarchical data row in the grid.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

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

GridViewHierarchyRowInfo(GridViewDataRowInfo)

Initializes a new instance of the GridViewHierarchyRowInfo class.

Declaration

cs-api-definition
public GridViewHierarchyRowInfo(GridViewDataRowInfo row)

Parameters

row

GridViewDataRowInfo

The data row information to copy from.

GridViewHierarchyRowInfo(GridViewInfo)

Initializes a new instance of the GridViewHierarchyRowInfo class.

Declaration

cs-api-definition
public GridViewHierarchyRowInfo(GridViewInfo owner)

Parameters

owner

GridViewInfo

The owner grid view information.

Properties

ActiveView

Gets or sets the active view for this hierarchy row.

Declaration

cs-api-definition
public GridViewInfo ActiveView { get; set; }

Property Value

GridViewInfo

The active GridViewInfo.

ChildRow

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

Declaration

cs-api-definition
public GridViewDetailsRowInfo ChildRow { get; }

Property Value

GridViewDetailsRowInfo

The GridViewDetailsRowInfo child row.

ChildRows

Gets the child rows collection for this hierarchy row.

Declaration

cs-api-definition
public override GridViewChildRowCollection ChildRows { get; }

Property Value

GridViewChildRowCollection

The collection of child rows.

Overrides GridViewRowInfo.ChildRows

HasChildViews

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

Declaration

cs-api-definition
public override bool HasChildViews { get; }

Property Value

bool

True if the row has child views, false otherwise.

Overrides GridViewRowInfo.HasChildViews

Index

Gets the index of this row.

Declaration

cs-api-definition
public override int Index { get; }

Property Value

int

The zero-based index of the row.

Overrides GridViewRowInfo.Index

IsExpandable

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

Declaration

cs-api-definition
public virtual bool? IsExpandable { get; set; }

Property Value

bool?

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

Level

Gets the level of the hierarchy for this row.

Declaration

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

Property Value

int

The hierarchy level.

Parent

Gets the parent row for this row.

Declaration

cs-api-definition
public override IHierarchicalRow Parent { get; }

Property Value

IHierarchicalRow

The parent hierarchical row.

Overrides GridViewRowInfo.Parent

RowElementType

Gets the type of the GridRowElement for current GridViewRowInfo.

Declaration

cs-api-definition
public override Type RowElementType { get; }

Property Value

Type

The type of the row element.

Overrides GridViewRowInfo.RowElementType

Views

Gets the collection of views for this hierarchy row.

Declaration

cs-api-definition
public IReadOnlyCollection<GridViewInfo> Views { get; }

Property Value

IReadOnlyCollection<GridViewInfo>

A read-only collection of GridViewInfo objects.

Methods

CreateGridViewDetailsRowInfo(GridViewHierarchyRowInfo)

Creates the GridViewDetailsRowInfo for the specified hierarchy row.

Declaration

cs-api-definition
protected virtual GridViewDetailsRowInfo CreateGridViewDetailsRowInfo(GridViewHierarchyRowInfo hierarchyRow)

Parameters

hierarchyRow

GridViewHierarchyRowInfo

The hierarchy row information.

Returns

GridViewDetailsRowInfo

A new instance of GridViewDetailsRowInfo.

EnsureViews()

Ensures that the views collection is properly initialized and updated.

Declaration

cs-api-definition
public void EnsureViews()

HasChildRows()

Determines whether the row has child rows.

Declaration

cs-api-definition
public override bool HasChildRows()

Returns

bool

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

Overrides GridViewRowInfo.HasChildRows()

OnPropertyChanged(PropertyChangedEventArgs)

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

Declaration

cs-api-definition
protected override void OnPropertyChanged(PropertyChangedEventArgs e)

Parameters

e

PropertyChangedEventArgs

The property changed event arguments.

Overrides GridViewDataRowInfo.OnPropertyChanged(PropertyChangedEventArgs)

OnPropertyChanging(PropertyChangingEventArgsEx)

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

Declaration

cs-api-definition
protected override void OnPropertyChanging(PropertyChangingEventArgsEx args)

Parameters

args

PropertyChangingEventArgsEx

The property changing event arguments.

Overrides GridViewRowInfo.OnPropertyChanging(PropertyChangingEventArgsEx)