This is a migrated thread and some comments may be shown as answers.

[Solved] Date Format for grid column

1 Answer 109 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sam
Top achievements
Rank 1
Sam asked on 21 Dec 2014, 11:21 AM
I'm trying to format the date column as follow:

<Grid:DataGridNumericalColumn CanUserEdit="False" Header="ReportedDate" PropertyName="DateReported" CellContentFormat="{}{yyyy}" />


The application raises error when hits the grid view.

Please advicse.

1 Answer, 1 is accepted

Sort by
0
Sam
Top achievements
Rank 1
answered on 21 Dec 2014, 12:43 PM
Found the solution:

CellContentFormat="{}{0:yyyy}"
Tags
Grid for XAML
Asked by
Sam
Top achievements
Rank 1
Answers by
Sam
Top achievements
Rank 1
Share this question
or