RichText no wrapping

Is it possible to NOT wrap the text in a RichText type cell? In my QueryCellInfo event, I try to set e.Style.WrapText = False, but the text still wraps for that cell.

1 Reply

HA haneefm Syncfusion Team April 2, 2007 10:54 PM UTC

Hi jegers,

There is no property setting to handle this. But One thing you can do is to handle the DrawDisplayText event and draw the text yourself in a way that works with the WrapText using the DrawRichText static method.

[c#]
Syncfusion.Drawing.RichTextPaint.DrawRichText(e.Graphics, rtb, rtf, this.gridControl1.PrintingMode , Bounds1, e.TextRectangle, Bounds2, e.Style.BackColor, false, 100, false);

Here is a forum thread that discuss with the DrawRichText method.
http://www.syncfusion.com/forums/message.asp?MessageID=35231

Best Regards,
Haneef

Loader.
Up arrow icon