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

Colour formatting in radgridview for winforms

1 Answer 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sayoni
Top achievements
Rank 1
Sayoni asked on 20 Aug 2013, 05:00 AM
I have a radgridview which has several columns and each row of data has templates..so on expanding a column we can see a bunch of new expanded rows..

But at the very end I have a few total rows which do not have these expanded rows..I want to set a specific backcolour for each of the columns (cells) based on a bool value. The bool value is a hidden checkbox column in the grid itself.

The scenario is 
1. There are two hidden checkbox columns History and Totals which give me bool values
2. If History = True for any row then all the columns will be gray
3. If Total = true for any row then all the columns will be blue
4. If History = False and Total = False then I have separate colour code for each column.
5. History and Total both can never be true for any row.
6. I want to colour only the parent rows and not the template within each parent row.

Please help!

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 22 Aug 2013, 02:42 PM
Hello Sayoni,

Thank you for writing.

In the following articles you can find out how to format cells and rows. Also you can find comprehensive information on conditional formatting, formatting non data cells, formatting cells on demand, and many other sections that will help you achieve the desired effect:

I hope this will be useful. Should you have further questions, I would be glad to help.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Sayoni
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or