private void LoadDepartementDetails() { List <Education_Agent> education_Agents = new List <Education_Agent>(); CurrentDepartement = DepartementsRepository.LoadSingleDepartement(DepartementIdSelected); lblTitle.Text = CurrentDepartement.Departement_Name; tbServiceDepartement.Text = CurrentDepartement.Departement_Name; lbltb.Text = "Departement"; lblcombo.Visible = false; comboDep.Visible = false; foreach (var service in CurrentDepartement.Education_Service) { foreach (var agent in service.Education_Agent) { education_Agents.Add(agent); } } dgAgentServices.DataSource = GetDataSource(education_Agents); }
public MyColumnCollectionDGDepartement(Education_Departement obj) { _obj = obj; }