Skip to main content
Tab

ASPxGridViewExportRenderingEventArgs.TextValue Property

Gets or sets the processed brick’s value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public object TextValue { get; set; }

Property Value

Type Description
Object

An object that represents the processed brick’s value.

Remarks

Use the TextValue property to obtain and change, if required, the processed brick’s value. For example, if the rendered brick corresponds to a data cell, the TextValue property returns the cell’s value. Its display text is returned by the ASPxGridViewExportRenderingEventArgs.Text property.

If the rendered brick corresponds to a column header or preview, the TextValue property returns null.

protected void ASPxGridViewExporter1_RenderBrick(object sender, DevExpress.Web.ASPxGridViewExportRenderingEventArgs e) {
     if(e.Column is GridViewDataColumn && e.Value is DateTime) {
          string format = "mm/dd/yyyy hh:mm:ss AM/PM";
          if(!String.IsNullOrEmpty(format)) {
               e.TextValue = String.Format(format, e.Value);
          }
     }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TextValue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also