删除datagrid中的多个行 [英] Delete multiple rows in datagrid

查看:68
本文介绍了删除datagrid中的多个行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从datagrid中删除多行。每行包含一个复选框。勾选5复选框并按下删除按钮删除该5行。

Delete multiple rows from datagrid.Each row contain a checkbox.when 5 check box is checked and delete button pressed delete that 5 rows.

推荐答案

看看在以下主题:

WPF 4 DataGrid:删除多行 [ ^ ]
Have a look on following thread:
WPF 4 DataGrid: Delete Multiple Rows[^]


设置

this.SampleDataGrid.ItemsSource as ObservableCollection< your bo => ;;

然后找到使用linq概念选择的行。

之后传递observable collection database for delete。
set
this.SampleDataGrid.ItemsSource as ObservableCollection<your bo="">;
then find the rows that are selected by using linq concept.
after that pass that observable collection database for delete.


这篇关于删除datagrid中的多个行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆