datagridview删除选中行
for (int i = dataGridView1.SelectedRows.Count; i > 0; i--)
{
dataGridView1.Rows.RemoveAt(dataGridView1.SelectedRows[i - 1].Index);
}
datagridview删除选中行
for (int i = dataGridView1.SelectedRows.Count; i > 0; i--)
{
dataGridView1.Rows.RemoveAt(dataGridView1.SelectedRows[i - 1].Index);
}