TreeGridItem

GridItem
Item for a TreeGridView for each node of the tree.
Remarks: This is the standard implementation. You can implement ITreeGridItem with your own class to use them as nodes in the tree instead.

Constructors

TreeGridItem

#
public TreeGridItem(IEnumerable<ITreeGridItem> children, params object[] values)
Initializes a new instance of the TreeGridItem class with the specified children and values.
children (IEnumerable<ITreeGridItem>)Children to initialize the item with.
values (params object[])Values for this node in the tree.

TreeGridItem

#
public TreeGridItem(params object[] values)
Initializes a new instance of the TreeGridItem class with the specified values.

Properties

Children

#
public TreeGridItemCollection Children { get; }
Gets the collection of children for this tree grid item.

Count

#
public virtual int Count { get; }
Gets the number of child items.

Expandable

#
public virtual bool Expandable { get; }
Gets a value indicating whether this TreeGridItem is expandable.

Expanded

#
public virtual bool Expanded { get; set; }
Gets or sets a value indicating whether this TreeGridItem is expanded.

Parent

#
public ITreeGridItem Parent { get; set; }
Gets or sets the parent of this item.

Tag

public object Tag { get; set; }
Gets or sets a custom value to associate with this item.
inherited fromGridItem

Values

public object[] Values { get; set; }
Gets or sets the values of the row.
inherited fromGridItem

Indexers

this[]

#
public virtual ITreeGridItem this[int index] { get; }
Gets the child item at the specified index.

Methods

GetValue

public virtual object GetValue(int column)
Gets the value from this item for the specified column/index
inherited fromGridItem
column (int)column/index to get the value
value of the object with the specified column/index
GetValue

SetValue

public virtual void SetValue(int column, object value)
Sets the value of this object for the specified column/index
inherited fromGridItem
column (int)column/index to set the value
value (object)value to set at the specified column/index
SetValue