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


i able bind combo box selected item of row selected in datagrid. want able through xaml only.

what binding syntax required combobox bind selected item of data grid?

thx

this should work:

<sdk:datagrid itemssource="{binding items}" x:name="mygrid" height="100" verticalalignment="top"/>         <combobox             x:name="results"              margin="0,100"             selecteditem="{binding selecteditem, elementname=mygrid, mode=twoway}"             itemssource="{binding items}">         </combobox> 

you bind selected item of combo box selected item of data grid. done via elementname.

hope helps.

tj


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? -