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. Image for the cookie policy date

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

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

4 Replies

JJ Jisha Joy Syncfusion Team 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


JJ Jisha Joy Syncfusion Team 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



AL Allon November 3, 2009 12:44 PM UTC

Thanks a lot, Jisha.

Regards,
Allon


JJ Jisha Joy Syncfusion Team November 4, 2009 04:14 AM UTC

Hi Allon,

Thank you for your update.

Regards.
Jisha

Loader.
Live Chat Icon For mobile
Up arrow icon