Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当在 DataGrid 中添加新行时,无论是空数据还是错误数据,它都会保持添加。如何测试是否导致异常以将其删除?
ObservableCollection<Humain>
好吧,由于您没有任何代码来向我们展示您的行是什么样子,或者您是如何编辑它们的,所以这个一般性答案是我能做的最好的: