I have successfully got a UnboundColumn with a value converter to produce a DateTime object, however the column displays the long format string of datetime and in US culture.
How can I change the format of the column.
Have tried DataTemplate both assigned to itemtemplate of unboundcolumn and default type template, I think the problem here is that the object is the wrong type (not DateTime)
Any ideas
Good to try writing stuff down...
Found a solution
<ig:UnboundColumn Key="Date" ValueConverter="{StaticResource dateConverter}" HeaderText="Date">
<ig:UnboundColumn.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Value, StringFormat={}{0:dd/MM/yyyy}}"/>
</DataTemplate>
</ig:UnboundColumn.ItemTemplate>
</ig:UnboundColumn>
Hello,
Thank you for your post. I am very glad that you have managed to solve the issue that you are having. If you need any further assistance on the matter, please do not hesitate to ask.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support