|
-
Nov 10th, 2014, 09:53 PM
#14
Hyperactive Member
Re: refresh combobox values after updating its datatable and adapter
 Originally Posted by jmcilhinney
You don't have a problem at all. You simply have two copies of the data from the database. Changing one of those copies doesn't affect the other. Saving the changes from one of the copies to the data doesn't change the other. If you have a ComboBox bound to a DataTable and you never actually change what's in that DataTable, why would what you see in the ComboBox change?
The contents of your DataTable is representative of what was in the database when you queried it. If the contents of the database changes and you want your DataTable to reflect those changes then you have to query the database again to populate the DataTable again. It's that simple.
Alternatively, don't use two DataTables. If you only use one DataTable on both forms then both forms will inherently reflect the changes made on the other.
I"m sure you are correct. However I don't see where the error is. If you could be so kind as to point it out..... I'm shot looking at these screens tonight... Will pick this up tomorrow again..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|