Hi, I have a form that has a combobox bound to a bindingsource which correctly populates on startup.
I then have a text box which is used to add new entries to the underlying database which should then reflect in the combobox, but does not?
When I save the value from the text box the entry successfully writes to the database and when I .fill the table via the tableadapter the combobox flicks to show it has been refreshed.
However when looking at the combobox the new item does not appear. I have stepped through the code and the row count remains the same before and after the .fill command so for some reason the refresh/reload of the underlying table is not happening and I cannot find out why?
I used the exact same code that loads the data at the beginning which works on first opening the form so can't see why it wont work again??
I vaguely remeber way back in early VS.NET that there were times I had to move all the desiger genreated code for a dataset to the end of the desginer generated block to overcome a similar problem, but have tried that and that does not work either.
Any ideas out there?
I have attached the project, with .exe files removed should anyone want to see the problem first hand?
The password to access the detailed monthly tab is set to 123.
Look at the combobox for transaction descriptions to see the entries. Then add one in the text box below and you will see the combobox flick but no new entry? Then look at the database and see the new entry was written???
Thanks in hope....
I then have a text box which is used to add new entries to the underlying database which should then reflect in the combobox, but does not?
When I save the value from the text box the entry successfully writes to the database and when I .fill the table via the tableadapter the combobox flicks to show it has been refreshed.
However when looking at the combobox the new item does not appear. I have stepped through the code and the row count remains the same before and after the .fill command so for some reason the refresh/reload of the underlying table is not happening and I cannot find out why?
I used the exact same code that loads the data at the beginning which works on first opening the form so can't see why it wont work again??
I vaguely remeber way back in early VS.NET that there were times I had to move all the desiger genreated code for a dataset to the end of the desginer generated block to overcome a similar problem, but have tried that and that does not work either.
Any ideas out there?
I have attached the project, with .exe files removed should anyone want to see the problem first hand?
The password to access the detailed monthly tab is set to 123.
Look at the combobox for transaction descriptions to see the entries. Then add one in the text box below and you will see the combobox flick but no new entry? Then look at the database and see the new entry was written???
Thanks in hope....