This is a migrated thread and some comments may be shown as answers.

Column Header - Vertical Text

2 Answers 363 Views
GridView
This is a migrated thread and some comments may be shown as answers.
neil
Top achievements
Rank 1
neil asked on 29 Oct 2019, 02:51 PM

Hi

I have tried to rotate the text in the column text as per your instructions on the web but it doesn't work, what am I doing wrong (VB Net)

 

     RadGridView1.ViewCellFormatting += radGridView1_ViewCellFormatting()
        RadGridView1.TableElement.TableHeaderHeight = 90
        RadGridView1.Rows(0).IsSelected = True

 

2 Answers, 1 is accepted

Sort by
0
neil
Top achievements
Rank 1
answered on 29 Oct 2019, 02:53 PM

function is

 Private Sub radGridView1_ViewCellFormatting(ByVal sender As Object, ByVal e As CellFormattingEventArgs)
        Dim element As GridHeaderCellElement = TryCast(sender, GridHeaderCellElement)
        If element IsNot Nothing Then
            element.TextOrientation = Orientation.Vertical
            element.FlipText = True
        End If
    End Sub

0
Nadya | Tech Support Engineer
Telerik team
answered on 29 Oct 2019, 03:45 PM

Hello Neil,

As I can see from your second post you have already found out an appropriate solution to your problem. This is the right way. In order to specify the orientation of the column header cells, you should access the GridHeaderCellElement and set its TextOrientation property.

Do not hesitate to contact us if you have other questions.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
neil
Top achievements
Rank 1
Answers by
neil
Top achievements
Rank 1
Nadya | Tech Support Engineer
Telerik team
Share this question
or