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.

Coloring text in one cell with different colors.

Thread ID:

Created:

Updated:

Platform:

Replies:

8932 Nov 26,2003 08:53 PM Feb 3,2004 05:49 PM General Discussion 3
loading
Tags: General Discussion
Rasik
Asked On November 26, 2003 08:53 PM

Dear Syncfusion Team, Do your product give us the facility to color the text of one cell of the grid with different colors.E.g: Say text in one cell is "Hello World". Can we color Hello in Red and World in Blue. If Yes, how can we do it? If no,do you any other product which will solve our purpose? Regards, Rasik

Daniel Jebaraj [Syncfusion]
Replied On December 1, 2003 06:36 AM

Hi Rasik, Sure, you can do that with the Rich Text cell type. Also, take a look at the xhtml sample. It allows for simple formatting to be applied to the Rich Text cell using xhtml instead of RTF. Best regards, Daniel

Administrator [Syncfusion]
Replied On February 2, 2004 02:47 PM

Can this be done using the GridBoundDataGrid? >Hi Rasik, > >Sure, you can do that with the Rich Text cell type. Also, take a look at the xhtml sample. It allows for simple formatting to be applied to the Rich Text cell using xhtml instead of RTF. > >Best regards, >Daniel

Administrator [Syncfusion]
Replied On February 3, 2004 05:49 PM

Yes, but some coding is required on your side. Take a look at the GDBGMultiHeader sample. This shows how you can override QueryCellInfo to provide style information for individual cells. In this event handler you can set the cell type to be richtext and provide the text from the underlying datasource and convert it into rtf. Stefan

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.

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.

;