This is a migrated thread and some comments may be shown as answers.

[Solved] Cell background colour

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
skysailor
Top achievements
Rank 1
skysailor asked on 12 Mar 2008, 02:33 AM
Hi,
I need to be able to set the background colour of cells in a grid based on values of the field showing in that cell. Is this possible? And is the background colour preserved when exporting the grid to Excel or PDF?
Clayton.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 14 Mar 2008, 07:45 AM
Hi Clayton,

Yes, you can set background color for RadGrid cells based on their value. Please find attached a simple example (assemblies not included).

The background color will be preserved when exporting to PDF. You can also make the color appear when exporting to Excel, but using PDF is easier.

Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
skysailor
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or