Skip to main content

CustomRowFilterEventArgs.Item[TreeListColumn] Property

Gets a value of a specific column in the processed TreeListNode.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

public object this[TreeListColumn column] { get; }

Parameters

Name Type Description
column TreeListColumn

A TreeListColumn object that identifies a column.

Property Value

Type Description
Object

The value of a specific column.

Remarks

To obtain a column value, enter this column in rectangular brackets directly after the CustomRowFilterEventArgs class object.

void TreeList1_CustomRowFilter(object sender, CustomRowFilterEventArgs e) {
    //access a column by its name
    var value = e[treeListColumn1];
    //access a column by its index
    var value2 = e[(sender as TreeList).Columns[1]];
    //access a column by its data field name
    var value3 = e[(sender as TreeList).Columns["FirstName"]];
}
See Also