private void dgvPars_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) { return; } else { parsDatatable = DataOperator.GetPars(_patientID, _visitID, _deptID, (DateTime)dgvPars.Rows[e.RowIndex].Cells[0].Value); pushValue(parsDatatable); } }