TreeListColumn.AbsoluteIndex Property

Gets or sets a column's position within the Tree List's column collection.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

[Browsable(false)]
public int AbsoluteIndex { get; set; }
<Browsable(False)>
Public Property AbsoluteIndex As Integer

Property Value

Type Description
Int32

An integer value representing the column's zero based index within the collection.

Remarks

Use this property to obtain the column's position within the collection or to move it to a new position. Note that this doesn't affect the column's visible position within the Tree List. To change the column's position among other visible columns, use its TreeListColumn.VisibleIndex property.

You can access a column by its absolute index using the Tree List's TreeList.Columns indexer. Absolute indexes are also returned by the column collection's TreeListColumnCollection.IndexOf method.

Examples

The next example demonstrates how to access a focused node value in the column which is identified by the TreeListColumn.AbsoluteIndex property set to 0.

Two ways are provided to perform this operation: via the TreeListNode.Item property and TreeListNode.SetValue method.

//first method
treeList1.FocusedNode.SetValue(0, "new value");
//second method
treeList1.FocusedNode[0] = "new value";
See Also