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

Selected row highlights partial row height

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 04 Jan 2013, 05:49 PM
Hi,

Radgrid I am using needs different color for each row based on some attributes of data, when I  set background color of  each item using cssclass or c# code,  hovered items and selected items  are highlighted partially.

How can I use custom color to each row and also highlight 100% row height, I am using skin to set  css for rest of the grid controls.
    foreach (GridDataItem item in rgTicketsGrid.Items)                      {
            item.CssClass = "RadBackGround";// item.BackColor = Color.FromArgb(iBackColor);
}


.RadBackGround
{
     background-color:Gray !important;
}
Thanks,
Prava

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 05 Jan 2013, 05:15 AM
Hello,

Please try with below code snippet.

<style type="text/css">
        .RadBackGround
        {
            background-color: Gray !important;
            background-image: none !important;
        }
    </style>


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or