wpf在DataGrid中使用了Xceed.Wpf.Toolkit 里的DateTimePicker控件,Xaml如下:
<DataGrid ItemsSource="{Binding ProductionDataList, Mode=TwoWay}"
SelectionMode="Single" RowEditEnding="DataGrid_RowEditEnding" IsReadOnly="False">
<i:Interaction.Triggers>
>
<DataGrid.Columns>
<DataGridTemplateColumn Header="开始时间">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Xc:DateTimePicker Format="FullDateTime" Value="{Binding StartTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
运行修改了DateTimePicker,确没触发DataGrid的RowEditEnding,修改别的列就触发了RowEditEnding事件,请问这个问题是怎样解决?DateTimePicker的Value不是依耐项属性么?它没实现更改通知吗?求教
我也遇到了这个问题,很麻烦