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.
Syncfusion Feedback

Displaying Multiline Header in Winform DataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

13130 Apr 21,2004 10:30 AM UTC Aug 31,2004 06:04 PM UTC Windows Forms 1
loading
Tags: FAQ
Mahesh Bodas
Asked On April 21, 2004 10:30 AM UTC

Is there any way of displaying multiline header in Winform Datagrid I tried adding newline character in HeaderText of DataGridTextBoxColumn, set the Multiline property to true but nothing seems to work. --Thanks Mahesh

Administrator [Syncfusion]
Replied On August 31, 2004 06:04 PM UTC

Using vbcrlf & increasing datagrid HeaderFont property, v can achive this. find below ex Dim dgCol As DataGridTextBoxColumn dgCol = New DataGridTextBoxColumn dgCol.MappingName = "Id_Emp" dgCol.HeaderText = "Employee" & vbCrLf & "Id" dgCol.Width = 45 dgsTblStyle.GridColumnStyles.Add(dgCol) and set datagrid HeaderFont property as Arial 25 > >Is there any way of displaying multiline header in Winform Datagrid I tried adding newline character in HeaderText of DataGridTextBoxColumn, set the Multiline property to true but nothing seems to work. > >--Thanks > Mahesh

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon 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.Close Icon

;