Class
GridViewHierarchyDataProvider

Base hierarchy data provider

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public abstract class GridViewHierarchyDataProvider : IDisposable

Inheritance: objectGridViewHierarchyDataProvider

Derived Classes: GridViewEventDataProviderGridViewObjectRelationalDataProviderGridViewRelationDataProviderGridViewSelfReferenceDataProviderGridViewSelfReferenceLoadOnDemandDataProvider

Implements: IDisposable

Constructors

GridViewHierarchyDataProvider(GridViewTemplate)

Initializes a new instance of the GridViewHierarchyDataProvider class.

Declaration

cs-api-definition
public GridViewHierarchyDataProvider(GridViewTemplate template)

Parameters

template

GridViewTemplate

The template.

Properties

IsSuspendedNotifications

Gets whether the notifications are suspended.

Declaration

cs-api-definition
protected bool IsSuspendedNotifications { get; }

Property Value

bool

The is suspended notifications.

IsValid

Gets whether the data provider is valid.

Declaration

cs-api-definition
public virtual bool IsValid { get; }

Property Value

bool

The is valid.

IsVirtual

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

Declaration

cs-api-definition
public virtual bool IsVirtual { get; }

Property Value

bool

true if this instance is virtual; otherwise, false.

Relation

Gets the relation.

Declaration

cs-api-definition
public virtual GridViewRelation Relation { get; }

Property Value

GridViewRelation

The relation.

Template

Gets the template.

Declaration

cs-api-definition
public GridViewTemplate Template { get; }

Property Value

GridViewTemplate

The template.

Methods

Create(GridViewRelation)

Creates the specified hierarchy data provider based on relation description.

Declaration

cs-api-definition
public static GridViewHierarchyDataProvider Create(GridViewRelation relation)

Parameters

relation

GridViewRelation

The relation.

Returns

GridViewHierarchyDataProvider

Dispose()

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

Declaration

cs-api-definition
public virtual void Dispose()

Implements IDisposable.Dispose()

GetChildRows(GridViewRowInfo, GridViewInfo)

Gets the child rows.

Declaration

cs-api-definition
public abstract IList<GridViewRowInfo> GetChildRows(GridViewRowInfo parentRow, GridViewInfo view)

Parameters

parentRow

GridViewRowInfo

The parent row.

view

GridViewInfo

The view.

Returns

IList<GridViewRowInfo>

GetParent(GridViewRowInfo)

Gets the parent.

Declaration

cs-api-definition
public abstract GridViewHierarchyRowInfo GetParent(GridViewRowInfo gridViewRowInfo)

Parameters

gridViewRowInfo

GridViewRowInfo

The grid view row info.

Returns

GridViewHierarchyRowInfo

Refresh()

Refreshes this instance.

Declaration

cs-api-definition
public abstract void Refresh()

ResumeNotifications()

Resumes the notifications.

Declaration

cs-api-definition
protected void ResumeNotifications()

SuspendNotifications()

Suspends the notifications.

Declaration

cs-api-definition
protected void SuspendNotifications()