摘要:
int selectIndex = dgExport.SelectedIndex; ICollectionView view = (ICollectionView)CollectionViewSource.GetDefaultView(dgExport.ItemsSource); List<Export> items = new List<Export>(); items = (List<Export>)view.SourceCollection; items.RemoveAt(selectIndex); dgExport.Items.Refresh(); 阅读全文