Class GridViewHierarchyRowInfo
Represents a hierarchical data row in the grid.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewHierarchyRowInfo : GridViewDataRowInfo, IDataItem, IHierarchicalRow, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable
Constructors
GridViewHierarchyRowInfo(GridViewDataRowInfo)
Initializes a new instance of the GridViewHierarchyRowInfo class.
Declaration
public GridViewHierarchyRowInfo(GridViewDataRowInfo row)
Parameters
|
GridViewDataRowInfo
row
The data row information to copy from. |
GridViewHierarchyRowInfo(GridViewInfo)
Initializes a new instance of the GridViewHierarchyRowInfo class.
Declaration
public GridViewHierarchyRowInfo(GridViewInfo owner)
Parameters
|
GridViewInfo
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
|
GridViewInfo
The active GridViewInfo. |
ChildRow
Gets the child row that is related with this row in a hierarchy.
Declaration
public GridViewDetailsRowInfo ChildRow { get; }
Property Value
|
GridViewDetailsRowInfo
The GridViewDetailsRowInfo child row. |
ChildRows
Gets the child rows collection for this hierarchy row.
Declaration
public override GridViewChildRowCollection ChildRows { get; }
Property Value
|
GridViewChildRowCollection
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
|
System.Boolean
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
|
System.Int32
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
|
System.Nullable<System.Boolean>
True if expandable, false otherwise, or null if not determined. |
Level
Gets the level of the hierarchy for this row.
Declaration
public int Level { get; }
Property Value
|
System.Int32
The hierarchy level. |
Parent
Gets the parent row for this row.
Declaration
public override IHierarchicalRow Parent { get; }
Property Value
|
IHierarchicalRow
The parent hierarchical row. |
Overrides
RowElementType
Gets the type of the GridRowElement for current GridViewRowInfo.
Declaration
public override Type RowElementType { get; }
Property Value
|
System.Type
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
|
GridViewHierarchyRowInfo
hierarchyRow
The hierarchy row information. |
Returns
|
GridViewDetailsRowInfo
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
|
System.Boolean
|
Overrides
OnPropertyChanged(PropertyChangedEventArgs)
Called when a property has changed. Handles expansion state notifications.
Declaration
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
|
System.ComponentModel.PropertyChangedEventArgs
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
|
PropertyChangingEventArgsEx
args
The property changing event arguments. |