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

RadGridView background color change

1 Answer 1316 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Batkaval
Top achievements
Rank 1
Batkaval asked on 13 Dec 2012, 05:56 AM
HI,

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

Cheers

1 Answer, 1 is accepted

Sort by
0
Accepted
Anton
Telerik team
answered on 14 Dec 2012, 11:18 AM
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.
Tags
GridView
Asked by
Batkaval
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or