string format not working for DataGridTextColumn?
Put folloing xaml for Currency formating, but not working. Why?
<sdk:DataGridTextColumn Header="Amount" Binding="{Bin开发者_JAVA技巧ding Amount, StringFormat={}{0:C}}" />
Make sure that Amount
is in numeric type. Strings
won't format.
Try...
<sdk:DataGridTextColumn Header="{Binding Amount, StringFormat=Amount: {0:C}}"/>
精彩评论