Skip to content

About

Wrap text inside column cells and headers

Topics

Resources

Stars

0 stars

Watchers

54 watching

Forks

Latest commit

 

History

62 Commits

Folders and files

Repository files navigation

WPF Data Grid - Wrap Text Inside Columns

This example demonstrates how to wrap text inside column cells and headers:

image

To wrap text in GridControl cells, assign the TextEditSettings object to the column's EditSettings property and set the TextWrapping property to Wrap:

<dxg:GridColumn.EditSettings>
    <dxe:TextEditSettings TextWrapping="Wrap"/>
</dxg:GridColumn.EditSettings>

To wrap the column header's text, specify the ColumnHeaderTemplate property and set the TextBlock.TextWrapping property to Wrap:

<dxg:TableView.ColumnHeaderTemplate>
    <DataTemplate>
        <TextBlock Text="{Binding}" TextWrapping="Wrap"/>
    </DataTemplate>
</dxg:TableView.ColumnHeaderTemplate>

Files to Review

Documentation

More Examples

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Wrap text inside column cells and headers

Topics

Resources

Stars

0 stars

Watchers

54 watching

Forks

Used by

Contributors

Languages