在Datagrid上,我将CanUserAddRows设置为true,但是,当我确实通过网格添加行时,是否有可以触发的事件,所以我可以看到实际上正在添加ObservableCollection吗?
我说这种逻辑是因为当用户从网格中添加一行时,基础设施库会触发事件
干杯
尝试DataGrid.LoadingRow事件
或者您实际上可以处理ObservableCollection.CollectionChanged / PropertyChanged
On a Datagrid I have CanUserAddRows set to be true, however, when I do add a row via the grid is there an event that can be fired so I can see that the ObservableCollection is actually being added?
I say this logic as the infragistics library fires an event when a user adds a row from the grid
Cheers
Try the DataGrid.LoadingRow Event
Or you could actually handle the ObservableCollection.CollectionChanged/PropertyChanged
本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文