29
2012
03

Datagridview操作之Datagridview删除选择性多行

private void btnDelete_Click(object sender, EventArgs e)
{
ArrayList arrayList = new ArrayList();
for (int i = 0; i < dgvAllNum.Rows.Count; i++)
{
if (dgvAllNum.Rows[i].Cells[0].Value != null) //判断该行的复选框是否存在,第一列是选择框
...
«1»