Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Field Format for Non 24h Time Format
posted

Hello,

I've got a problem with the datagrid field format property. I want to display the time in non 24h format like "02:35:56 AM". I set the format to "hh:mm:ss tt" but this does not work. Did i make any mistake?

XAML:

<Custom:XamDataGrid DataSource="{Binding Data}">
<Custom:XamDataGrid.FieldLayouts>
<Custom:FieldLayout>
<Custom:Field Format="hh:mm:ss tt"
Label="Zeit"
IsReadOnly="True"
AlternateBinding="{Binding Date}">

</Custom:Field >
</Custom:FieldLayout>
</Custom:XamDataGrid.FieldLayouts>
</Custom:XamDataGrid>

I added a test solution...

Thanks

Andreas

WpfApplication1.zip
Parents Reply Children
No Data