private void cbbGroupTour_SelectedIndexChanged(object sender, EventArgs e) { try { var x = cbbGroupTour.SelectedValue.ToString(); int gID = int.Parse(x); gridControlData.DataSource = objService.GetList(gID); } catch { } }
private void loadDataGroup() { var gID = int.Parse(cbbGroupTour.SelectedValue.ToString()); objService = new TourService(); var data = objService.GetList(gID); gridControlData.DataSource = data; gridControlData.Update(); gridControlData.Refresh(); }