RadGridView background color change

2 posts, 1 answers
  1. Batkaval
    Batkaval avatar
    1 posts
    Member since:
    Dec 2012

    Posted 12 Dec 2012 Link to this post

    HI,

    I was wondering how to change background color of whole RadGridView, i'm using C#.

    Cheers
  2. Answer
    Anton
    Admin
    Anton avatar
    167 posts

    Posted 14 Dec 2012 Link to this post

    Hello Batkaval,

    Thank you for writing.

    I assume that you want to change the color of the table element. If so, here is how you can do that:
    this.radGridView1.TableElement.BackColor = Color.Red;

    Please note that by default cells and rows back colors are transparent, so if you change the color of table element you should use row formatting event to set the row's desired color.

    I hope this helps.

    Greetings,
    Anton
    the Telerik team
    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Back to Top