Download DevExpress v20.1 full version
With DevExpress WPF Controls , you can create XAML-based applications with powerful interactive functions that focus on the needs of contemporary customers and build a new generation of touch-enabled solutions in the future.
Problems encountered
Is it possible to split the table header into two rows? And add text wrapping?
solution:
If you want to add a line break at a specific location, it is sufficient to add the line break to the text displayed in the title.
In the code:
tableView.Header = "first line\nsecond line";
In XAML:
<dxg:TableView x:Name="tableView" Header="first line second line"/>
If you want to enable text wrapping in this header, please use a TextBlock in the Header property of the TableView and set its TextWrapping to Wrap:
<dxg:TableView > <dxg:TableView.Header> <TextBlock Text="Some information that should be displayed on several lines. This is required because the whole text cannot be shown on a single line." TextWrapping="Wrap"/> </dxg:TableView.Header> </dxg:TableView>
DevExpress Technical Exchange Group 2: 775869749 Welcome to join the group discussion
To get first-hand DevExpress control information, please visit DevExpress Chinese website!