Silverlight Combobox setting the selected item to selected item of datagrid -


i have 2 silverlight controls on form; datagrid bound list of items, combobox bound list of values.

scenario...when user selects row on grid want set update combobox value of property of selected item in datagrid displayed.

my combobox looks like

< combobox displaymemberpath="description" x:name="cbtopics" margin="141,170,0,0" verticalalignment="top" width="300" horizontalalignment="left" selecteditem="{binding elementname=datagrid1, path=selecteditem.topic.description, mode=twoway}"/>

in load event set itemssource of combo list of values. set combobox description of item selected in datagrid. items in datagrid collection of objects

object code object code has property topic has property of description (hence why trying selecteditem.topic.description).

any ideas doing wrong here? trying setup relationship between datagrid selected item , combobox through xaml only.

thx

            <combobox height="23" horizontalalignment="left" margin="141,36,0,0"               name="cbtopics2" verticalalignment="top" width="399"               selectedvalue="{binding elementname=datagrid1, path=selecteditem.topic.description, mode=twoway}"               displaymemberpath="description"               selectedvaluepath="description" /> 

the above solution.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -