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

Preventing grid control''s title from being 2 rows title

Thread ID:

Created:

Updated:

Platform:

Replies:

91072 Nov 3,2009 09:42 AM UTC Nov 4,2009 04:14 AM UTC WinForms 4
loading
Tags: GridControl
Allon
Asked On November 3, 2009 09:42 AM UTC

Hi everyone,

I'd like to know, how to prevent grid control's title from being 2 rows title when resizing the column. It happens when the column is too narrow to contain the column's title (the text which I determined as title is too long for the width of the column). I'm quite sure, that there is some property which controls this behaviour (which I couldn't find).

Have a nice day :)
Allon

Jisha Joy [Syncfusion]
Replied On November 3, 2009 11:48 AM UTC

Hi Allon,

You could set the WrapText property to flase to avoid the wrapping of text in grid.

//For the first column header
this.gridControl1[0,1].WrapText = false;


Regards,
Jisha

Jisha Joy [Syncfusion]
Replied On November 3, 2009 12:02 PM UTC

Hi Allon,

The style of the column header is controlled by the Column Header BaseStyle. You could use the following code to prevent wraptext for the entire column header.

this.gridControl1.Model.BaseStylesMap["Column Header"].StyleInfo.WrapText = false;

Regards,
Jisha


Allon
Replied On November 3, 2009 12:44 PM UTC

Thanks a lot, Jisha.

Regards,
Allon

Jisha Joy [Syncfusion]
Replied On November 4, 2009 04:14 AM UTC

Hi Allon,

Thank you for your update.

Regards.
Jisha

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

;