public static frmStudentDetail objFrmStudentDetail;//实例化窗体对象
private void dgvStudent_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
SqlParameter[] para = new SqlParameter[]
{
new SqlParameter("@SNO",dgvStudent.CurrentRow.Cells[0].Value)
};
Student objStudent = objStudentService.GetstudentbySNOToDetail(para);