开发者

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}}"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜