private void LoadUnivData() { UniversityInfoService dac = new UniversityInfoService(); DataSet ds = dac.GetAllUniversity(); UniversityGrid.DataSource = ds.Tables[0]; dac.Dispose(); }
private void LoadMajorData() { UnivMajorGrid.Refresh(); UniversityInfoService service = new UniversityInfoService(); DataSet ds = service.GetSearchMajor(txtMajorSearch.Text); UnivMajorGrid.DataSource = ds.Tables[0]; service.Dispose(); }