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

Coloring text in one cell with different colors.

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

3 Replies

DJ Daniel Jebaraj Syncfusion Team 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


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon