I have read the documentation and searched the forums, and as far as I can see, I am doing everything correctly; however no data is displayed, and the ComboBox is not even displayed. See the attached file and please review the code I posted. If you need further information, please let me know.
answered on 25 Mar 2013, 07:48 AM
Please note that the source set for the ItemsSourceBinding should be a property of the business object the grid row is bound to. Looking at the provided source code, this is correct. Then the DataMemberBinding is set to SelectedScreenType which is set to ScreenTypeLiterals.CurrentItem. Is there a value set for the ScreenTypeLiterals.CurrentItem?
Your response caused me to look again at how the DataMemberBinding was assigned and I found two things that were a problem. First, the type of the property should have been ScreenTypeLiteral.ScreenType. The second, and I'm not sure why was returning the CurrentItem of the collection. By creating a field behind the SelectedScreenType of ScreenTypeLiteral.ScreenType and assigning the CurrentItem to it on the ICollectionView.CurrentChanged event, all work correctly. My suspicion is the the second problem my have something to do with the absence of the IsSynchronizedWithCurrentItem property on the ComboBoxColumn.
Thanks for your help,
answered on 26 Mar 2013, 02:24 PM
I am glad to hear that you have resolved the issue. Thank you for sharing the solution with the community.