标签:col GridView ctr 数据显示 ted sel i++ edr idv
//数据显示中选择删除的行,返回类型是 DataGridViewSelectedRowCollection
DataGridViewSelectedRowCollection selectRows = dataGridView1.SelectedRows;
//删除选择到的行
for (int i = 0; i < selectRows.Count; i++)
{
DataGridViewRow row = selectRows[i];
dataGridView1.Rows.Remove(row);
}
标签:col GridView ctr 数据显示 ted sel i++ edr idv
原文地址:https://www.cnblogs.com/luwutong/p/12819041.html