i list of objects selected in gridcontrol (devexpress)
would know how so?
<dxg:gridcontrol itemssource="{binding cars}">
found way this.
way 1
if having devexpress 15.5 (which don't), use selecteditem
property: https://documentation.devexpress.com/#wpf/devexpressxpfgriddatacontrolbase_selecteditemstopic
way 2
create behavior hook tableview inside gridcontrol if have:
<dxg:gridcontrol itemssource="{binding cars}"> <dxg:gridcontrol.view> <controls:tableview > <i:interaction.behaviors> <view:collectionobserverbehavior selecteditems="{binding selectedcars}" /> </i:interaction.behaviors> </controls:tableview>
behavior details in article here: http://social.technet.microsoft.com/wiki/contents/articles/22871.wpfmvvm-binding-to-read-only-properties-using-behaviors.aspx
Comments
Post a Comment