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

Represents an layout that is performed in self-referencing for the first data cell

Definition

Constructors

Initializes a new instance of the SelfReferenceCellLayout class.

C#
public SelfReferenceCellLayout(GridRowElement rowElement)
Parameters:rowElementGridRowElement

The row element.

Properties

Gets the data cell.

C#
protected GridDataCellElement DataCell { get; }
Property Value:

The data cell.

Gets a value that indicates the expander element associated with the layout

C#
public GridExpanderItem ExpanderItem { get; }

Gets a value that indicates the links count

C#
protected int LinkCount { get; }

Gets or sets the width of the GridViewIndentColumn.

C#
protected int LinkIndent { get; }

Gets a collection that contains all links

C#
protected List<GridLinkItem> Links { get; }

Gets a value that indicates the row element associated with the layout

C#
protected GridRowElement RowElement { get; }

Gets a value that indicates the row associated with the layout

C#
protected GridViewHierarchyRowInfo RowInfo { get; }

Gets the stack layout element.

C#
public StackLayoutElement StackLayoutElement { get; }
Property Value:

The stack layout element.

Methods

Binds the row properties.

C#
public virtual void BindRowProperties()

Caches the link item.

C#
protected void CacheLinkItem(GridLinkItem item)
Parameters:itemGridLinkItem

The item.

Creates the self-referencing cell's elements.

C#
public virtual void CreateCellElements(GridDataCellElement dataCell)
Parameters:dataCellGridDataCellElement

The data cell.

Detaches the cell elements.

C#
public virtual void DetachCellElements()

Disposes the link elements.

C#
protected void DisposeLinks()

Disposes all managed resources - such as Bitmaps, GDI+ objects, etc.

C#
protected override void DisposeManagedResources()

Overrides: DisposableObject.DisposeManagedResources()

Gets the link item.

C#
protected GridLinkItem GetLinkItem()
Returns:

GridLinkItem

Gets the traverser for concrete instance of IHierarchicalRow.

C#
protected ITraverser<GridViewRowInfo> GetTraverser(IHierarchicalRow hierarchicalRow)
Parameters:hierarchicalRowIHierarchicalRow

An instance of IHierarchicalRow.

Returns:

ITraverser<GridViewRowInfo>

Determines whether [is first child row] [the specified parent].

C#
protected virtual bool IsFirstChildRow(IHierarchicalRow parent, GridViewRowInfo row)
Parameters:parentIHierarchicalRow

The parent.

rowGridViewRowInfo

The row.

Returns:

bool

true if [is first child row] [the specified parent]; otherwise, false.

Determines whether [is last child row] [the specified parent].

C#
protected virtual bool IsLastChildRow(IHierarchicalRow parent, GridViewRowInfo row)
Parameters:parentIHierarchicalRow

The parent.

rowGridViewRowInfo

The row.

Returns:

bool

true if [is last child row] [the specified parent]; otherwise, false.

Unbinds the row properties.

C#
public virtual void UnbindRowProperties()

Updates the associated instance of expander primitive

C#
protected virtual void UpdateExpander(bool isLastChildRow)
Parameters:isLastChildRowbool

Value that indicated whether the row is first one.

Updates links

C#
protected virtual void UpdateLinks(bool isLastChildRow)
Parameters:isLastChildRowbool

Creates or deletes links

C#
protected virtual void UpdateLinksCore()

Updates link types in the specified data cell.

C#
protected virtual void UpdateLinkTypes(bool isLastChildRow)
Parameters:isLastChildRowbool