Skip to main content
A newer version of this page is available. .

TreeListColumnDisplayTextEventArgs.Column Property

Gets the processed column.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v18.2.dll

Declaration

public TreeListDataColumn Column { get; }

Property Value

Type Description
TreeListDataColumn

A TreeListDataColumn object representing the column.

Example

This example demonstrates how to display the “empty” string within the Units On Order column’s data cells if they contain zero values.

The image below shows the result:

ASPxTreeList-CustomColumnDisplayText

protected void ASPxTreeList1_CustomColumnDisplayText(object sender, DevExpress.Web.ASPxTreeList.TreeListColumnDisplayTextEventArgs e)
{
    if (e.Column.FieldName != "UnitsOnOrder") return;
    if (Convert.ToInt32(e.Value) == 0)
        e.DisplayText = "empty";
}
See Also