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

Customize the background color of a row

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Angella
Top achievements
Rank 1
Angella asked on 08 Feb 2013, 03:20 AM
Hi all,

In my RadGrid, I need to customize the background color of a row when it is highlighted and selected.
Any help would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Feb 2013, 03:37 AM
Hi,

Please try the following CSS.

CSS:
<style type="text/css">
    .RadGrid_Default  .rgHoveredRow
    {
        background-color:Red !important;
    }
    .RadGrid_Default  .rgHoveredRow  td
    {
        background-color:Red !important;
    }
    .RadGrid_Default  .rgSelectedRow
    {
        background-color:Blue !important;
    }
    .RadGrid_Default  .rgSelectedRow  td
    {
        background-color:Blue !important;
    }   
</style>

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