wpf: DataGridTextColumn 数字格式显示,编辑时取消格式(StringFormat)

参考:Format values in a Datagrid 

参考:Remove stringFormat while editing cell in datagrid

使用 DataGridTemplateColumn 实现:

 "Coût (k€)">
      
        
          "{Binding Path=TechnicalCostAmount, Mode=OneWay, StringFormat=N0, ConverterCulture=fr-FR}"/>
        
      
      
        
          "{Binding Path=TechnicalCostAmount, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
        
      
    

 

 

 

转载于:https://www.cnblogs.com/Mindy-hym/p/11436299.html

你可能感兴趣的:(wpf: DataGridTextColumn 数字格式显示,编辑时取消格式(StringFormat))