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

Base hierarchy data provider

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public abstract class GridViewHierarchyDataProvider : IDisposable

Inheritance: objectGridViewHierarchyDataProvider

Derived Classes: GridViewEventDataProviderGridViewObjectRelationalDataProviderGridViewRelationDataProviderGridViewSelfReferenceDataProviderGridViewSelfReferenceLoadOnDemandDataProvider

Implements: IDisposable

Constructors

Initializes a new instance of the GridViewHierarchyDataProvider class.

C#
public GridViewHierarchyDataProvider(GridViewTemplate template)
Parameters:templateGridViewTemplate

The template.

Properties

Gets whether the notifications are suspended.

C#
protected bool IsSuspendedNotifications { get; }
Property Value:

The is suspended notifications.

Gets whether the data provider is valid.

C#
public virtual bool IsValid { get; }
Property Value:

The is valid.

Gets a value indicating whether this instance is virtual and create ChildRows outside GridViewTemplate.Rows collection.

C#
public virtual bool IsVirtual { get; }
Property Value:

true if this instance is virtual; otherwise, false.

Gets the relation.

C#
public virtual GridViewRelation Relation { get; }
Property Value:

The relation.

Gets the template.

C#
public GridViewTemplate Template { get; }
Property Value:

The template.

Methods

Creates the specified hierarchy data provider based on relation description.

C#
public static GridViewHierarchyDataProvider Create(GridViewRelation relation)
Parameters:relationGridViewRelation

The relation.

Returns:

GridViewHierarchyDataProvider

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public virtual void Dispose()

Implements: IDisposable.Dispose()

Gets the child rows.

C#
public abstract IList<GridViewRowInfo> GetChildRows(GridViewRowInfo parentRow, GridViewInfo view)
Parameters:parentRowGridViewRowInfo

The parent row.

viewGridViewInfo

The view.

Returns:

IList<GridViewRowInfo>

Gets the parent.

C#
public abstract GridViewHierarchyRowInfo GetParent(GridViewRowInfo gridViewRowInfo)
Parameters:gridViewRowInfoGridViewRowInfo

The grid view row info.

Returns:

GridViewHierarchyRowInfo

Refreshes this instance.

C#
public abstract void Refresh()

Resumes the notifications.

C#
protected void ResumeNotifications()

Suspends the notifications.

C#
protected void SuspendNotifications()