private void ultraButtonRefresh_Click(object sender, EventArgs e) { dsPatientList = new DataSet(); try { objHospDB = new HospitalDB(); PatientInfo objPatientInfo = new PatientInfo(objHospDB); dtPatientList = objPatientInfo.GetAllAsDataTable(); ultraGridPatientList.DataSource = dtPatientList; } catch (Exception ex) { MessageBox.Show("Error"); } }