General information
Category:
The Mere Mortals .NET Framework
Title:
Setting cbo box BindingSource to a dataview
At the risk of asking a stupid question…
I have 5 combobox on a form all using the same BO to retrieve the list I’m trying to bind them via MM binding properties.
I created 5 dataviews per the instructions in the Working with Dataviews section of the developers guild. I’m not sure if my next step was correct or not but I didn’t find anything in the dev guild on it. On the form in the Form Load I declared 5 dataviews and set references to the 5 dataviews that I created earlier using functions that returned the currentdatasets. GetDataView (“my view name”). ie Dim dv As DataView = ds.GetDataView("dvSSRStates")
Return dv
So now I have 5 dataviews in the form load (dvSSRStates,dvIFTAStates,…). They all have data I checked using the debugger. Everyone had the row count I expected.
I took this approach because I could not find any direct reference to the views in the BOs main dataset.
Because I’m using more than just the defaultview in the example (Synchronizing Data Bound User Interface Controls , Turning Off Synchronization). I have not been able to find the correct settings for the Binding properties – BindingSource, BindingSourceDisplayMember, BindingSourceValueMember
My questions are
1. does this sound like the right approach?
2. Should I still be using the MM binding properties?
3. If I should be using those properties could someone please provide am example of their proper settings ( I’ve try several and have not been successful).
Any assistance would be greatly appreciated.
Thanks
Brian G
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only