PropertyMetadataBuilderExtensions.DateTimeDataType<T>(PropertyMetadataBuilder<T, DateTime>, DateTimeDisplayMode) Method
Configures the property editor to display date-time values.
Namespace: DevExpress.Mvvm.DataAnnotations
Assembly: DevExpress.Mvvm.v24.1.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
Declaration
public static PropertyMetadataBuilder<T, DateTime> DateTimeDataType<T>(
this PropertyMetadataBuilder<T, DateTime> builder,
DateTimeDisplayMode displayMode = DateTimeDisplayMode.Date
)
Parameters
Name | Type | Description |
---|---|---|
builder | PropertyMetadataBuilder<T, DateTime> | A property metadata builder. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
displayMode | DateTimeDisplayMode | Date | The required DateTimeDisplayMode value. |
Type Parameters
Name |
---|
T |
Returns
Type | Description |
---|---|
PropertyMetadataBuilder<T, DateTime> | The property metadata builder instance. |
Remarks
The DateTimeDataType<T> property is recognized by the GridControl, TreeListControl, DataLayoutControl and PropertyGridControl.
Using the DateTimeDataType<T> method is equivalent to assigning the [DataType(DataType.DateTime)] data annotation attribute to a data property.
See Also