listview - who to bind listviewcolumn header into a column cell in WPF -
i have following problem. want set trigger binding path=columnheader
<datatrigger binding="{dynamicresource resourcekey=actualcolumnheader}" value="1"/>
(i dont know how call this...)
my code this:
<listview name="lv_reporte" > <listview.view> <gridview x:name="gv_reporte"> <gridviewcolumn header="order1"> <gridviewcolumn.celltemplate> <datatemplate> <textblock> <textblock.style> <style> <style.triggers> <datatrigger binding="{dynamicresource resourcekey=actualcolumnheader}" value="1"> </datatrigger> </style.triggers> </style> </textblock.style> </textblock> </datatemplate> </gridviewcolumn.celltemplate> </gridviewcolumn> </gridview> </listview.view> </listview>
but problem don't know header of column, created dynamically, that's why want header without knowing it.
i hope can me. thanks.
you might able use stringformat
markup
<gridviewcolumn header="order1" displaymemberbinding="{binding property1, stringformat=order1 {0}}"/>
Comments
Post a Comment