Header Text Wrap

Feb 6, 2013 at 10:27 AM
How i can wrap header's text?
I have try with this code but without results
               <ExtendedGridControl:ExtendedDataGrid.Columns>
                    <ExtendedColumn:ExtendedDataGridTextColumn Binding="{Binding Path=ID_PAGAMENTO}"  MaxWidth="50"  >
                        <ExtendedColumn:ExtendedDataGridTextColumn.HeaderTemplate >
                            <DataTemplate >
                                <TextBlock Text="Testoacapoinautomatico" TextWrapping="Wrap" />
                            </DataTemplate>
                        </ExtendedColumn:ExtendedDataGridTextColumn.HeaderTemplate>
                    </ExtendedColumn:ExtendedDataGridTextColumn>
How i can resolve problem?

thancks
Coordinator
Feb 10, 2013 at 4:53 PM
Hi,

Kindly try this,
Go to ExtendedGrid\Styles\DataGrid.Generic.xaml
And play with DataGridColumnHeader Style
I guess you would have to tweak this code
<TextBlock DockPanel.Dock="Left"
    Text="{Binding}" Margin="4,0,4,0"
    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
Feb 25, 2013 at 12:52 PM
Sorry my late

Thanks. Your solution worked.