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

Changing RadGridView cell backcolor

2 Answers 230 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 12 Nov 2010, 09:42 PM
I am populating a RadGrid, and afterwards, I want to loop through the rows and change the backcolor based on the data in one of the columns.  I cannot make it work.  Any suggestions?  This is a VB.Net winforms application.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 12 Nov 2010, 10:40 PM
Hi Bob,

the way to change the backcolor of rows is to use the RowFormatting event. Have a look at this link about formatting rows.

If you want to format cells, then in a similar way you would use the CellFormatting event. this link will tell you about formatting the cells using the CellFormatting event.

Hope that helps, but let me know if you need more help

Richard
0
Richard Slade
Top achievements
Rank 2
answered on 15 Nov 2010, 02:37 PM
Hello Bob,

Did this help? If so, please mark as answer so others can find the solution too. If you need more help, just let me know.

Richard
Tags
GridView
Asked by
Bob
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or