Colour formatting in radgridview for winforms

2 posts, 0 answers
  1. Sayoni
    Sayoni avatar
    1 posts
    Member since:
    Aug 2013

    Posted 20 Aug 2013 Link to this post

    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!
  2. Dimitar
    Admin
    Dimitar avatar
    2907 posts

    Posted 22 Aug 2013 Link to this post

    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 >>
Back to Top