Skip to main content

TimeColumn.TimeFormatMode Property

Gets or sets whether values in cells are displayed in 12- or 24-hour format.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

[XtraSerializableProperty]
public TimeFormatMode TimeFormatMode { get; set; }

Property Value

Type Description
TimeFormatMode

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

Available values:

Name Description
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