if (this.dataGridView1.Rows.Count < 2)
{
MessageBox.Show("禁止空删除!");
return;
}
if (this.dataGridView1.CurrentCell == null)
{
MessageBox.Show("请选择信息后后再删除!");
return;
}
if (this.dataGridView1.CurrentRow.Index == -1)
{
MessageBox.Show("请选择信息后后再删除!");
return;
}