wpf - How to I pass additional data to a bound datagrid? -
so have data grid bound object, there way pass addition list/variable it?
specifically:
<datagrid x:name="indoorunittable" itemssource="{binding boundlist, mode=twoway, notifyonsourceupdated=true, updatesourcetrigger=propertychanged}" ... <datatemplate x:name="propertyfromothertable"> <textblock text="{binding otherlistiwant, mode=twoway, converter={staticresource converterfortwolists}, updatesourcetrigger=propertychanged}"/> </datatemplate>
you have use converterparameter in binding, passed converter parameter. hope have understood question correctly ;)
Comments
Post a Comment