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
Post a Comment