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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

RichText no wrapping

Thread ID:

Created:

Updated:

Platform:

Replies:

58932 Mar 31,2007 11:20 PM UTC Apr 2,2007 10:54 PM UTC WinForms 1
loading
Tags: GridControl
j g
Asked On March 31, 2007 11:20 PM UTC

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

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

;