Skip to main content
Tab

ASPxGridViewExportRenderingEventArgs.Value Property

Gets the processed data cell’s value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public object Value { get; }

Property Value

Type Description
Object

An object that represents the processed cell’s value.

Remarks

If the processed brick doesn’t correspond to a data cell, the Value property returns an empty string. To obtain the values of other cells within the processed row, use the ASPxGridViewExportRenderingEventArgs.GetValue method.

The Value property returns a collection of objects for the merged group row.

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