protected void RefreshGrid(bool rebind) { if (patient == null && visit == null) { RadGrid1.DataSource = CntAriCli.GetDiagnosticsAssigned(ctx); } else { if (patient != null) { RadGrid1.DataSource = patient.DiagnosticAssigneds; } if (visit != null) { RadGrid1.DataSource = visit.DiagnosticAssigneds; } } if (rebind) { RadGrid1.Rebind(); } }