Represents a hierarchical data row in the grid.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewHierarchyRowInfo : GridViewDataRowInfo, IDataItem, IHierarchicalRow, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable
Inheritance: objectGridViewRowInfoGridViewDataRowInfoGridViewHierarchyRowInfo
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewHierarchyRowInfo class.
public GridViewHierarchyRowInfo(GridViewDataRowInfo row)
The data row information to copy from.
Initializes a new instance of the GridViewHierarchyRowInfo class.
public GridViewHierarchyRowInfo(GridViewInfo owner)
The owner grid view information.
Properties
Gets or sets the active view for this hierarchy row.
Gets the child row that is related with this row in a hierarchy.
public GridViewDetailsRowInfo ChildRow { get; }
The GridViewDetailsRowInfo child row.
Gets the child rows collection for this hierarchy row.
public override GridViewChildRowCollection ChildRows { get; }
The collection of child rows.
Overrides:
Gets a value indicating whether the hierarchy row has child views.
public override bool HasChildViews { get; }
True if the row has child views, false otherwise.
Overrides:
Gets the index of this row.
public override int Index { get; }
The zero-based index of the row.
Overrides:
Gets or sets a value indicating whether the row has child rows and can be expanded.
public virtual bool? IsExpandable { get; set; }
True if expandable, false otherwise, or null if not determined.
Gets the level of the hierarchy for this row.
public int Level { get; }
The hierarchy level.
Gets the parent row for this row.
public override IHierarchicalRow Parent { get; }
The parent hierarchical row.
Overrides:
Gets the type of the GridRowElement for current GridViewRowInfo.
public override Type RowElementType { get; }
The type of the row element.
Overrides:
Gets the collection of views for this hierarchy row.
public IReadOnlyCollection<GridViewInfo> Views { get; }
A read-only collection of GridViewInfo objects.
Methods
Creates the GridViewDetailsRowInfo for the specified hierarchy row.
protected virtual GridViewDetailsRowInfo CreateGridViewDetailsRowInfo(GridViewHierarchyRowInfo hierarchyRow)
The hierarchy row information.
Returns:A new instance of GridViewDetailsRowInfo.
Ensures that the views collection is properly initialized and updated.
public void EnsureViews()
Determines whether the row has child rows.
public override bool HasChildRows()
true if the row has child rows; otherwise, false.
Overrides:
Called when a property has changed. Handles expansion state notifications.
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
The property changed event arguments.
Overrides:
Called when a property is changing. Handles expansion-related cancellation logic.
protected override void OnPropertyChanging(PropertyChangingEventArgsEx args)
The property changing event arguments.
Overrides: