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

RichText no wrapping

Thread ID:





58932 Mar 31,2007 07:20 PM Apr 2,2007 06:54 PM Windows Forms 1
Tags: GridControl
j g
Asked On March 31, 2007 07:20 PM

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.

haneefm [Syncfusion]
Replied On April 2, 2007 06:54 PM

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.

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.

Best Regards,


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