ASPxGridViewExportRenderingEventArgs.TextValue Property
Gets or sets the processed brick’s value.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
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);
}
}
}
Related GitHub Examples
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.