i made in datagrid templatecolumn structure:
<datagridtemplatecolumn header="squadra" width="sizetocells" isreadonly="true" headerstringformat="squadra"> <datagridtemplatecolumn.celltemplate> <datatemplate> <stackpanel orientation="horizontal"> <image maxheight="20" maxwidth="20" source="{binding path= 'cresturl' , converter={staticresource nametoimageconverter}}" /> <textblock text="{binding name}" /> </stackpanel> </datatemplate> </datagridtemplatecolumn.celltemplate> </datagridtemplatecolumn> but header "squadra" insn't visible when start solution, if populate datagrid through code header became visible. bug of wpf or wrong?
i think 's because column visible width of 0 (sizetocells , no content).
set minwidth="150"
Comments
Post a Comment