wpf datagrid在复选框单击后,CellEditEnding不会触发

时间:2016-10-01 13:45:36

标签: wpf datagrid

Array (18) 0 ["1", "a", "q"] 1 ["2","a","q"] 2 ["3","a","q"] 3 ["1","b","q"] 4 ["2","b","q"] 5 ["3","b","q"] 6 ["1","a","w"] 7 ["2","a","w"] 8 ["3","a","w"] 9 ["1","b","w"] 10 ["2","b","w"] 11 ["3","b","w"] 12 ["1","a","e"] 13 ["2","a","e"] 14 ["3","a","e"] 15 ["1","b","e"] 16 ["2","b","e"] 17 ["3","b","e"] 为什么不开火? 这是我CellEditEnding / RowEditEnding的代码:

DataGridCheckBoxColumn

这是我的DataGrid代码:

<DataGridCheckBoxColumn Header="Double " 
            Binding="{Binding DoubleBonus, UpdateSourceTrigger=PropertyChanged}" Width="*">
            <DataGridCheckBoxColumn.ElementStyle>
                 <Style TargetType="CheckBox">
                      <Setter Property="HorizontalAlignment" Value="Center" />
                 </Style>
            </DataGridCheckBoxColumn.ElementStyle>
            <DataGridCheckBoxColumn.HeaderStyle>
                 <Style TargetType="{x:Type DataGridColumnHeader}">
                        <Setter Property="HorizontalAlignment" Value="Stretch"/>
                        <Setter Property="HorizontalContentAlignment" Value="Center"/>
                        <Setter Property="FontWeight"  Value="Bold" />
                 </Style>
             </DataGridCheckBoxColumn.HeaderStyle>
</DataGridCheckBoxColumn>

0 个答案:

没有答案