Hello,
I am adding columns to XamGrid in code using PropertyDescriptorCollection.
One of the properties is DateTime . I add DateColumn to the XamGrid
if (((PropertyDescriptor)v).PropertyType == typeof(DateTime)) { column = new DateColumn(); }
But the value is shown only as Date without the time,
How can i show both date and time (with DateTime Picker) ? I need to do this in code (not in XAML)
Hello Michael,
Thank you for your post. I have been looking into it and I suggest you see this forum thread:
http://social.msdn.microsoft.com/Forums/en/wpf/thread/f065bcda-a5df-4fd1-bd29-3d0186245c8c
http://stackoverflow.com/questions/641577/how-to-change-format-e-g-dd-mmm-yyyy-of-datetimepicker-in-wpf-application
where it is discussed how to set the DatePicker Format.
Hope this helps you.