We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to display the long text in header cells as viewable?

By default, the cell value will be displayed as per the data that we provided to the grid. In this case, if the particular column has the data with minimum length i.e. 3 to 4 characters and header text as long, the column will be resized as per the header text length.

                          C:\Users\piruthiviraj.malaime\Desktop\img.PNG

In order to display the column header text fully and resize the column based on the data, the Orientation property can be used to display the header text as vertically.

GridControl

Code Snippet

C#

 

VB

 

GridGrouping Control

Code snippet

C#

 

VB

 

 

 

 

 

 

 

 

 

 

 

 

Screenshot

CellGrid

C:\Users\piruthiviraj.malaime\Desktop\7.PNG

DataGrid

C:\Users\piruthiviraj.malaime\Desktop\img.PNG

Sample Links

C#: Header Alignment_CS

VB: Header Alignment_VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6265 02/15/2016 02/15/2016 Windows Forms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.