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
Post a Comment