开发者

string format not working for DataGridTextColumn?

开发者 https://www.devze.com 2023-01-31 12:57 出处:网络
Put folloing xaml for Currency formating, but not working. Why? <sdk:DataGridTextColumnHeader=\"Amount\" Binding=\"{Bin开发者_JAVA技巧ding Amount, StringFormat={}{0:C}}\" />

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

精彩评论

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