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

How to apply style to a particular row of a table in a header template of a GridTemplateColumn?

1 Answer 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Antonio
Top achievements
Rank 1
Antonio asked on 09 Aug 2011, 01:30 AM
I have  RadGrid that has multiple headers. I use GridTemplateColumns to get this effect. I want to colorize a certain row in this header. When I set that row's background color what happens is that just the text cell gets the color and not the entire row cell. Please see attached for desired effect. The inner table won't accept the color right.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Aug 2011, 04:51 AM
Hello Antonio,

Try setting the following CSS.
CSS:
<style type="text/css">
.RadGrid_Default .rgHeader, .RadGrid_Default .rgHeader a
 {
    background:red!important;
 }
</style>

Thanks,
Shinu.
Tags
Grid
Asked by
Antonio
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or