SfDataGrid allows you to customize the header text for a GridColumn by using the property. However by default the grid displays only single line of text in the header and hence when you load a longer header text, the SfDataGrid clips them and displays an ellipsoid at the end.
In case, if longer text need to be displayed in the header, then SfDataGrid allows you to achieve it by using the property in the GridColumn. The replaces the default header view. Hence you can use it to load a label with LineBreakMode property being set to WordWrap. This will wrap the header text to the next line. You can use the property to customize the header row height as required based on your header text.
Refer the following code example which illustrates how to show multiline header in SfDataGrid.
The following screenshot shows the final outcome on executing the above code.
You can download a working sample for this KB from the below link.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|