Skip to main content

GridColumn.DisplayFormat Property

Gets or sets the pattern used to format cell values of the column.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll


public string DisplayFormat { get; set; }

Property Value

Type Description

The text pattern for cell values.


Use the DisplayFormat property to specify the format for numeric and date/time values displayed in grid columns. To compose format patterns, you can use standard or custom format specifiers (see the MSDN topics Standard Numeric Format Strings, Custom Numeric Format Strings, Standard Date and Time Format Strings and Custom Date and Time Format Strings).


This example shows how to use standard format strings to format column values.
Format values in the Price column as a currency amount, and use the Short Date Pattern to format values in the Date column.

Column Display Format

<dxg:DataGridView ItemsSource="{Binding Orders}">
        <!-- ... -->
        <dxg:NumberColumn FieldName="Price" DisplayFormat="C2"/>
        <dxg:DateColumn FieldName="Date" DisplayFormat="d"/>
        <!-- ... -->
See Also