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.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
String | A string value that specifies the format applied to column values. |
Remarks
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.
See Also