<
DataGridTextColumn
Binding
="
{Binding Path=OrderQty,Mode=TwoWay,UpdateSourceTrigger=LostFocus,StringFormat='n2'}
"
Header ="叫货数量" >
< DataGridTextColumn.CellStyle >
< Style >
< Setter Property ="FrameworkElement.HorizontalAlignment" Value ="Right" />
</ Style >
</ DataGridTextColumn.CellStyle >
</ DataGridTextColumn >
Header ="叫货数量" >
< DataGridTextColumn.CellStyle >
< Style >
< Setter Property ="FrameworkElement.HorizontalAlignment" Value ="Right" />
</ Style >
</ DataGridTextColumn.CellStyle >
</ DataGridTextColumn >
主要是Bingding里的StringFormat和Setter。