Back to Devexpress

TimeColumn.TimeFormatMode Property

maui-devexpress-dot-maui-dot-datagrid-dot-timecolumn.md

latest1.5 KB
Original Source

TimeColumn.TimeFormatMode Property

Gets or sets whether values in cells are displayed in 12- or 24-hour format. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public TimeFormatMode TimeFormatMode { get; set; }

Property Value

TypeDescription
TimeFormatMode

A value that specifies whether values in cells are displayed in 12- or 24-hour format.

|

Available values:

NameDescription
HourFormat12

The time in 12-hour format.

| | HourFormat24 |

The time in 24-hour format.

| | Auto |

The time format depends on the current culture.

|

Remarks

The column can display the time in 12- and 24-hour formats. The default format depends on the current culture. You can also use the TimeFormatMode property to specify the time format. The image below displays the time in 12-hour format.

See Also

TimeColumn Class

TimeColumn Members

DevExpress.Maui.DataGrid Namespace