This example demonstrates how to wrap text inside column cells and headers:
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>- Window1.xaml (VB: Window1.xaml)
- Window1.xaml.cs (VB: Window1.xaml.vb)
- WPF Data Grid - Customize Column Headers Based on Their Location
- Data Grid for WPF - Display Hyperlinks in Cells
- Build Binding Paths in WPF Data Grid Cells
- WPF Data Grid - Add Image and Button Columns
(you will be redirected to DevExpress.com to submit your response)
