111,125
社区成员
发帖
与我相关
我的任务
分享
datatable table=new datatable();
foreach (DataGridViewRow dr in this.dataGridView2.Rows)
{
DataGridViewCheckBoxCell cbx = (DataGridViewCheckBoxCell)dr.Cells[0];
if (!(bool)cbx.FormattedValue)
{
DataRow row = table.NewRow();
row = (dr.DataBoundItem as DataRowView).Row;
table.Rows.Add(row);
}
}table=DataGridView绑定数据表.Copy();
DataRow row = table.NewRow();
row = (dr.DataBoundItem as DataRowView).Row;
table.Rows.Add(row);