I was writing some sample to use a XamComboEditor inside a grid in a template column as well as a Temple Column Layout. Is it assumed that Binding the selected item does not work the same way a standard combo works?? when i replace the XamComboEditor with a standard ComboBox the samples work as expected. I have seen on the samples site that a value converter is used to wire up the binding. Is this required. I am using ria services with EF.
Thanks
Hi spicish2222,
you could check this forum thread out.There you can find a sample solution demostrating how to use a XamComboEditor in a TemplateColumn.
HTH,
i did see that thread before posting. so just for giggles i re wrote it as my proj is in VB. i created all my own objects and it works fine. i tried to create similar test in my main project and it does not work. i am using EF and RIA. in that proj i am using the classes that are generated in the metadata file. i even went as far as overiding the 'equals' in a partial to ensure it was comapring, still no luck.
this issues seem to be related to when you access the XamComboEditor in say and editing template col. if you change the option in the editor it will update the value, it just doesnt bind automatically when you access it
again this seems to work with no isses with a standard combobox. i ran a test with one DDS and two IG grids, one with combobox in templated col and one with XamComboEdititor in templaed col adn they clearly behave different
code:
SelectedItem="{Binding myObj, Mode=TwoWay}"
???