Silverlight combobox selectedvalue not updating nuclear dating techniques
further down the formload i've tried am i missing something silly to have the values in the combobox change and refresh at the time of the update to the database?
as i said, an exit and restart of the app displays the accurate data....i can't figure this out for the life of me. All the Refresh method of any control does is redraw it on-screen. If the binding hasn't been updated then redrawing it will have no effect.
I would have thought that if your data was bound to the Combo Box then the control should update automatically.
If it's not then you can call the Reset Bindings method of the associated Binding Source. | MSDN Data Walkthroughs VBForums Database Development FAQ My Code Bank Submissions: VB | C# My Blog: Data Among Multiple Forms (3 parts) Beginner Tutorials: VB | C# | SQLwondering if it was a schema change (wanted to be sure) - and same thing - on the opening round, the selected value of my combobox (what i'm tracking on) - is the old value on form load - exit the app, go back in, and the selected value is what it's supposed to be.....
The Data Source is the list containing the data to bind.
The Display Member is the name of the member of the bound objects to display in the control.
The Value Member is the name of the member of the bound objects whose value should be returned by the control's Selected Value property.
A common scenario is binding a Data Table via the Data Source and setting the Display Member and Value Member to "Name" and "ID" respectively.
the combobox properties being used are data source, display member and valuemember - I'm still very green at this but also noticed a plus sign entitled 'databindings' above combobox name, but all are blank - will begin researching what those are all about next....That way the user sees a list of names they can choose and you can get the ID that corresponds to the selected name from the Selected Value property.Now, in your situation, you should be binding your Data Table to a Binding Source and then binding that to the Combo Box.If I change the Phonebook Entries property on the Connection View Model to be of type Read Only Collection, the Two Way binding of the Selected Value property on the combobox works fine. I noticed a warning the the ouput console: "System. Data Warning: 50 : Using Collection View directly is not fully supported. I had a similar issue where the Selected Item never got updated.The basic features work, although with some inefficiencies, but advanced features may encounter known bugs. My problem was, that the selected item was not the same instance as the item contained in the list.