A newer version of this page is available. Switch to the current version.

TreeListNode.Data Property

Obsolete. Gets or sets a value that can be freely used as your specific programming needs dictate.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v19.2.dll

Declaration

[Browsable(false)]
[Obsolete("You should use the 'Tag' property instead of 'Data'")]
public object Data { get; set; }

Property Value

Type Description
Object

A value of the object type bound to the current node.

Examples

The following example demonstrates a way to traverse through root nodes. A Boolean value is assigned to the TreeListNode.Tag property of each visited node. Odd nodes get a true property value, while even nodes get a false value.

bool oddRow = false;
for(int i = 0; i < treeList1.Nodes.Count; i++) {
   treeList1.Nodes[i].Tag = oddRow;
   oddRow = ! oddRow;
}
See Also