Hi... I am using xamdatagrid in which i have 3 columns.One lable and two combobox. To populate Values in combobox i am using CellValuePresenterStyle in xamdatagrid.resources. For two combox i am using different cellvaluepresenterstyle.Values populating are different.Can't i merge two styles and write only one style which reduces code.In one cellvaluepresenter style only i should display values for both combobox. Is it possible.Plz help me to solve,
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Can you tell how do you set your XamComboBoxes' ItemsSource, so I could be able to investigate this further for you?
Looking forward for your reply
thanks for ur reply... Plz can u send me sample application so that i can understand clearly.
Thank you for your post. I have been looking into it and can say that if you use Static Resources as ItemsSource for the ComboBoxes, you won’t be able to use one Style for both Fields. If you want to use such approach I can suggest you handle the ComboBox’ Loaded event and in its handler you can determine to which column it belongs and set different source.
Hope this helps you.