回复 35楼CanYou1的帖子
谢谢反馈
你可以使用最简单的方法获取:
- void grid_LoadingRow(object sender, C1.WPF.DataGrid.DataGridRowEventArgs e)
- {
- if (e.Row.DataItem is INotifyPropertyChanged)
- {
- var data = e.Row.DataItem as INotifyPropertyChanged;
- data.PropertyChanged +=(s, e1)=>
- {
- ClearDuplicateRowError(e.Row.Errors);
- };
- }
- ClearDuplicateRowError(e.Row.Errors);
- }
复制代码 |