private void btndelete_Click(object sender, EventArgs e) { StudentInfoBLL stubll = new StudentInfoBLL(); string p = (string)dgvStudent.CurrentRow.Cells[0].Value; stubll.deleteStudentInfo(p); }