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
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