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

New Post: DateTime Column - Specific Format!?

$
0
0
Hi,

Does anyone have an answer to nilllen's question?

Thee fact is that I'm facing a similar problem but with a PropertyGrid instead of a DataGridControl. I have a propertygrid with SelectedObject binded on a Object having dynamic columns. In the Object, i know that the datetime value is formatted like i want (2012-10-05 11:04:58) but when the data is displayed in the propertygrid, it's displayed with the Longdatepattern and the Longtimepattern (Friday, October 5, 2012 11:04:58 AM) which seems to come from the regional settings.

I've tried TypeConverter, IValueConverter, StringFormat, CellEditor ... but nothing seems to work like I want since columns are dynamics and not defined in XAML.

Is there's something I can do to format the DateTime the way I want?

I'm using Extended WPF Toolkit™ Community Edition 2.0

Thanks,

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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