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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -