Skip to main content
Tab

ASPxGridViewExportRenderingEventArgs.Text Property

Gets or sets the text displayed within the brick currently being rendered.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public string Text { get; set; }

Property Value

Type Description
String

A String value that specifies the text displayed within the processed brick.

Remarks

Use the Text property to obtain and change, if required, the processed brick’s content. For example, if the rendered brick corresponds to a data cell, the Text property returns the cell’s display text. If the brick corresponds to a column header, the column’s caption is returned.

protected void ASPxGridViewExporter1_RenderBrick(object sender, ASPxGridViewExportRenderingEventArgs e) {
    GridViewDataCheckColumn checkColumn = e.Column as GridViewDataCheckColumn;
    if(e.RowType == GridViewRowType.Data && checkColumn != null && checkColumn.FieldName == "Boolean") {
        object value = e.Value;
        if(value == null || value == DBNull.Value)
            e.Text = "NULL";
        else if(value is bool) {
            e.Text = (bool)value ? "1" : "0";
        }
    }
}
See Also