ClassGridViewHierarchyRowInfo
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
GridViewHierarchyRowInfo(GridViewDataRowInfo)
Initializes a new instance of the GridViewHierarchyRowInfo class.
Declaration
public GridViewHierarchyRowInfo(GridViewDataRowInfo row)
Parameters
row
The data row information to copy from.
GridViewHierarchyRowInfo(GridViewInfo)
Initializes a new instance of the GridViewHierarchyRowInfo class.
Declaration
public GridViewHierarchyRowInfo(GridViewInfo owner)
Parameters
owner
The owner grid view information.
Properties
ActiveView
Gets or sets the active view for this hierarchy row.
Declaration
public GridViewInfo ActiveView { get; set; }
Property Value
The active GridViewInfo.
ChildRow
Gets the child row that is related with this row in a hierarchy.
Declaration
public GridViewDetailsRowInfo ChildRow { get; }
Property Value
The GridViewDetailsRowInfo child row.
ChildRows
Gets the child rows collection for this hierarchy row.
Declaration
public override GridViewChildRowCollection ChildRows { get; }
Property Value
The collection of child rows.
Overrides
HasChildViews
Gets a value indicating whether the hierarchy row has child views.
Declaration
public override bool HasChildViews { get; }
Property Value
True if the row has child views, false otherwise.
Overrides
Index
Gets the index of this row.
Declaration
public override int Index { get; }
Property Value
The zero-based index of the row.
Overrides
IsExpandable
Gets or sets a value indicating whether the row has child rows and can be expanded.
Declaration
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.
Parent
Gets the parent row for this row.
Declaration
public override IHierarchicalRow Parent { get; }
Property Value
The parent hierarchical row.
Overrides
RowElementType
Gets the type of the GridRowElement for current GridViewRowInfo.
Declaration
public override Type RowElementType { get; }
Property Value
The type of the row element.
Overrides
Views
Gets the collection of views for this hierarchy row.
Declaration
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
protected virtual GridViewDetailsRowInfo CreateGridViewDetailsRowInfo(GridViewHierarchyRowInfo hierarchyRow)
Parameters
hierarchyRow
The hierarchy row information.
Returns
A new instance of GridViewDetailsRowInfo.
EnsureViews()
Ensures that the views collection is properly initialized and updated.
Declaration
public void EnsureViews()
HasChildRows()
Determines whether the row has child rows.
Declaration
public override bool HasChildRows()
Returns
true if the row has child rows; otherwise, false.
Overrides
OnPropertyChanged(PropertyChangedEventArgs)
Called when a property has changed. Handles expansion state notifications.
Declaration
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
OnPropertyChanging(PropertyChangingEventArgsEx)
Called when a property is changing. Handles expansion-related cancellation logic.
Declaration
protected override void OnPropertyChanging(PropertyChangingEventArgsEx args)
Parameters
args
The property changing event arguments.
Overrides