private string Format(PatientInfo x) { return string.Format("{0},{1}", x.id, x.name); }
private void UpdateGridCell(int gridID, int rowIndex,PatientInfo patientInfo) { dataGridView.Rows[rowIndex].Cells[gridID - 1].Value = patientInfo.id + "_" + patientInfo.name; }