This is a migrated thread and some comments may be shown as answers.
Multi-Line Header Texts
1 Answer 8 Views
This is a migrated thread and some comments may be shown as answers.
bla
Top achievements
Rank 1
Veteran
bla asked on 26 Aug 2020, 11:10 AM
Can the behaviour of column header cell be changed to the following one?
When there is no space to display the whole header text, the text shall be wrapped so that it spreads over 2 (or more) lines.

(Initially now the text is cut off and 3 dots are added at the end.)

1 Answer, 1 is accepted

Sort by
0
Nadya
Telerik team
answered on 27 Aug 2020, 12:36 PM

Hello,

I noticed that you asked the same question about achieving multi-line header text in RadVirtualGrid in your other thread. Note that RadGridView and RadVirtualGrid are similar controls and they have similar formatting events when customizing cells/rows.

In RadGridView there are CellFormatting/ViewCellFormatting and RowFormattng/ViewRowFormatting events. Please refer to the following documentation articles that would give more information about these events:
https://docs.telerik.com/devtools/winforms/controls/gridview/cells/formatting-cells
https://docs.telerik.com/devtools/winforms/controls/gridview/rows/formatting-rows

If you want to wrap the header text in RadGridView you can use the TextWrap property of the cell element in the ViewCellFormatting event which is triggered for the header cells.

I hope this information helps. If you have other questions do not hesitate to contact me.

Regards,
Nadya
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Asked by
bla
Top achievements
Rank 1
Veteran
Answers by
Nadya
Telerik team
Share this question
or