ASPxTreeListExportRenderBrickEventArgs.RowKind Property

Gets the processed row’s type.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v21.1.dll

Declaration

public TreeListRowKind RowKind { get; }

Property Value

Type Description
TreeListRowKind

A TreeListRowKind enumeration value that identifies the processed row.

Available values:

Name Description
Header

Corresponds to a row that contains column headers.

Data

Corresponds to a node (data row).

Preview

Corresponds to a preview row.

GroupFooter

Corresponds to a group footer.

Footer

Corresponds to theASPxTreeList’s Footer.

InlineEdit

Corresponds to the In-Line Edit Node.

EditForm

Corresponds to a row that contains the Edit Form.

Error

Corresponds to the Error Node.

Example

This example shows how to draw department names in an exported document, based on their budget. Department names are painted in Orange if their budget is less than $100,000.

The image below shows the result:

CustomExport

using DevExpress.Web.ASPxTreeList;

protected void ASPxTreeListExporter1_RenderBrick(object sender,
DevExpress.Web.ASPxTreeList.Export.ASPxTreeListExportRenderBrickEventArgs e) {
    if (e.RowKind == TreeListRowKind.Data && e.Column != null &
        e.Column.FieldName == "Department") {
        if (Convert.ToInt32(ASPxTreeList1.FindNodeByKeyValue(e.NodeKey)["Budget"]) < 100000)
            e.BrickStyle.BackColor = System.Drawing.Color.Orange;
    }
}
See Also