New to Telerik UI for WinForms? Start a free 30-day trial

Supplies self-referencing rows on demand through RowSourceNeeded for an unbound template. Non-empty top-level rows are cached until ResetRowsCache() is called.

Definition

Constructors

Initializes a provider that requests root and child rows through the template's row-source event.

C#
public GridViewSelfReferenceLoadOnDemandDataProvider(GridViewTemplate template)
Parameters:templateGridViewTemplate

The unbound template whose rows are supplied on demand.

Exceptions: InvalidOperationException

The template is data-bound.

Properties

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

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

true if this instance is virtual; otherwise, false.

Overrides: GridViewHierarchyDataProvider.IsVirtual

Methods

Requests rows for a parent through RowSourceNeeded; non-empty root rows are cached.

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

The parent whose children are requested, or null for root rows.

viewGridViewInfo

The view requesting the rows.

Returns:

IList<GridViewRowInfo>

The rows supplied for the requested parent.

Overrides: GridViewHierarchyDataProvider.GetChildRows(GridViewRowInfo, GridViewInfo)

Returns null because this provider does not resolve a row's parent.

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

The row whose parent would be requested.

Returns:

GridViewHierarchyRowInfo

null.

Overrides: GridViewHierarchyDataProvider.GetParent(GridViewRowInfo)

Raises a data-changed notification without clearing the cached root rows.

C#
public override void Refresh()

Overrides: GridViewHierarchyDataProvider.Refresh()

Clears cached root rows so the next root-row request raises the row-source event again.

C#
public void ResetRowsCache()