Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: DataGridControl - Formatting Auto-Generated DateTime? Column

$
0
0
How do I change the format used to display a DateTime? Columns' Bound / Source Property of a DataGridControl Bound to an ObservableCollection<MyItemClass>?

I've tried, in the Window.Loaded Event Handler, for the applicable Column, setting its:
  1. CellContentStringFormat (to "ddd MM/dd/yy hh:mm tt") which resulted in the literal "ddd MM/dd/yy hh:mm tt" (without the quotes) being displayed in all Rows.
  2. DisplayedValueConverter to an IValueConverter that "Convert"(s) a DateTime? to a String of Format "ddd MM/dd/yy hh:mm tt".

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>