ASPxGridViewExportRenderingEventArgs.TextValueFormatString Property
Gets or sets the pattern used to format values.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
String | The pattern used to format values. |
Remarks
if (Curr == "USD") {
e.TextValueFormatString = "$#,##0.00";
}
if (Curr == "EUR") {
e.TextValueFormatString = "€#,##0.00";
}
Note
The TextValueFormatString property is in effect only for the XLS format. To set a cell’s format in non-Excel documents, use the ASPxGridViewExportRenderingEventArgs.XlsxFormatString, Text or TextValue properties.
e.Text = String.Format("{0:0.00}", e.TextValue);
See Also