GridTextColumn.DisplayFormat Property
Gets or sets the pattern used to format cell values for display purposes. This is a dependency property.
Namespace: DevExpress.UI.Xaml.Grid
Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Property Value
Type | Description |
---|---|
String | A string value that specifies the format applied to column values. |
Remarks
Cell values are formatted using string.Format(“{0:DisplayFormat}”, BaseEdit.EditValue). Refer to the Format Specifiers topic for more information on the available DisplayFormat values.
Use the DisplayFormat property to format the column values and add any text to their textual representation. The formatted text is displayed if a cell’s value is not currently edited (e.g. a cell is not focused or it is read-only). For example, to display currency values, set the DisplayFormat property to ‘c2‘. If a cell’s value is 99.9, its formatted equivalent will be $99.90.