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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

RichText format keeps resetting

Thread ID:





10530 Feb 4,2004 04:13 PM UTC Feb 4,2004 08:21 PM UTC WinForms 1
Tags: GridControl
Bill Korchinski
Asked On February 4, 2004 04:13 PM UTC

I''m using a griddataboundgrid control with rich text in a couple of the columns (because I like the dropdown feature). I would like the text in these cells to always come up as Courier New font in order to keep the text aligned the way I want. However, every time I examime one of the rich text cells in the griddataboundgrid, the format reverts to MS Sans Serif font. I''ve tried: - Populating the MS Access database with Courier New string data - formatting the grid columns to be Courier New font type - formating the entire griddataboundgrid to be Courier New font type - formatting my entire MS Access database to be Courier New font type - dynamically formatting the columns (mousedown event on grid) to Courier New font In all cases, the columns revert to Sans Serif. Is there a way to keep these rich text cells from reverting back to Sans Serif font? Thanks.

Administrator [Syncfusion]
Replied On February 4, 2004 08:21 PM UTC

The font used in richtext is stored in the rtf formatted string. So, if you want to set the font, you would need to modify the rtf string. One way you can do that is to create a RichTextBox control, and then use it to format the rtf strings. Here is a little sample.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon