Data Grid Header in Two Lines


hi

my header in datagrid lengthy. there way can wrap 2 rows in same column.  suppose header " a  lengthy column in datagrid" want show below.

this lengthy

column in datagrid

how this?

thanks

anandraj.a.

xmlns:localprimitives="clr-namespace:system.windows.controls.primitives;assembly=system.windows.controls.data"

<data:datagridtemplatecolumn header="youheader">

<data:datagridtemplatecolumn.headerstyle>
<style targettype="localprimitives:datagridcolumnheader">
<setter property="template">
<setter.value>
<controltemplate targettype="localprimitives:datagridcolumnheader">
<textblock text="{templatebinding content}" textwrapping="true"/>
</controltemplate>
</setter.value>
</setter>
</style>
</data:datagridtemplatecolumn.headerstyle>

</data:datagridtemplatecolumn>


 



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607