Show checked rows into another DataGridView

前端 未结 3 1393
悲哀的现实
悲哀的现实 2020-12-02 02:42

I have a DataGridView populated with a DataTable.
I added a CheckBoxColumn to select some rows.

My Goal is to show only se

3条回答
  •  时光取名叫无心
    2020-12-02 03:35

    The problem is the data table DT_Events doesn't have the column Sel, select takes the datasource of the grid i.e the data table you assigned.

    Instead of adding a checkboxcolumn, add a boolean column Sel in the table DT_Events and assign to grid.

提交回复
热议问题