DateTime Column
The DataGridDateTimeColumn
represents DateTime
objects.
The following example shows how to define a DataGridDateColumn manually.
-
First, create the business object.
Create the Data Model
-
The next step is to create some sample data.
Create Sample Data
-
To associate each column with the relevant property from the model, the example also uses the
PropertyName
property.Define the DataGrid in XAML
DateTimeColumn
Formatting the Cell Value
You can use the CellContentFormat
property to format the Date
and utilize any of the .NET Standard Date and Time Format Strings.