Hi! I am seeking assistance with this column in WPF, in a RadGridView:
<telerik:GridViewDataColumn DataMemberBinding="{Binding TargetDateET, StringFormat={}{0:MM/dd HH:mm}}" Header="Target Date" />
It displays DateTime values in the grid in the following format: "MM/dd HH:mm"
The issue is that the FilterDescriptor is in this format: "MM/dd/yyyy HH:mm:ss tt"
And when the filters are saved and presented to the user, they are different.
What I can do to manage this data in the same format? (Without having to generate a new variable that is a string and that returns the correct format) Help! Thanks in advance! Juan
Hi Pablo,
The column formatting does not change the underlying data and the DateTime object will remain the same. I do not think there is a way to avoid formatting the DateTime value when presenting it to the user in this case.
Let me know if you have additional questions.