I need to load a combobox with data from a SQL table DEPARTMENT (with code and description / the description is displayed in the combobox but what is caught is the code)
I used a dataSource (the one automatically configured by clicking on> on top of the combobox (graphical editing mode)).
So perfect: Load perfectly the data and pass the code right but here comes my problem: My application is composed of a form divided into two (split.panel) on one side has navigation and on the other some overlapping one panels for each type of cadastre etc ... One of these panels is the registration of DEPARTMENT, when registering a department and I go to the other panel where there is this combobox this new department that I registered does not appear ... Only those already registered before I open the application appear. If I close my application and open it again then everything appears.
From what I've been crawling the datasource does not have what I need (it's 'static'). Is there another way to do this? You do not need to post all the code if you do not want it (I can not show my code already done because I'm at work), you can tell me only the resources that I should use or a generic example.
I tried using Combobox.Refresh (); but it did not help.
Thanks ^^