/// <summary> /// 删除选择的信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DeleteClubPeobutton_Click(object sender, EventArgs e) { int seIndex = dataGridView1.CurrentCell.RowIndex; if (MessageBox.Show("确认删除 " + dataGridView1.Rows[seIndex].Cells[2].Value.ToString() + " 在 " + dataGridView1.Rows[seIndex].Cells[1].Value.ToString() + " 的信息?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK) { if (clubBLL.DEL_ClubPeoByID(dataGridView1.Rows[seIndex].Cells[0].Value.ToString())) { MessageBox.Show("删除成功!"); this.QueryClubPeoForm_Load(sender, e); } else { MessageBox.Show("删除失败!"); } } }