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

AlternatingItemStyle problem

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
thdwlgP
Top achievements
Rank 1
thdwlgP asked on 25 Mar 2009, 09:12 PM
I have a RadGrid control on my webform and I wanted to just make each row white background colored. But when I do the following
    <form id="form1" runat="server"
    <div> 
    <asp:ScriptManager ID="sc" runat="server"
    </asp:ScriptManager> 
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" OnNeedDataSource="uxShoppingCart_NeedDataSource"
        <AlternatingItemStyle BackColor="White" /> 
        </telerik:RadGrid> 
    </div> 
    </form> 


I get a 1px line on the bottom of each Alternating Row. So I have a gray line at the bottom of every 2 lines!
How do i get rid of the line?
Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 26 Mar 2009, 05:25 AM
Hello,

Try setting the alternate row style by applying style as shown below and see whether it works as you expected.

CSS:
<style type="text/css">  
.RadGrid_SkinName .rgAltRow td 
    background-color:#FFFFFF !important; 
    border-bottom-color:#FFFFFF !important; 
</style> 
Note : Change the SkinName to the skin which you are using. Hope this helps.

Thanks,
Shinu.
0
thdwlgP
Top achievements
Rank 1
answered on 26 Mar 2009, 06:20 PM
I just used one of the skins posted on this forum and it got rid of the line :)
I was missing the  .rgAltRow td
So once that was set it worked.
Thanks for your reply though!

Tags
Grid
Asked by
thdwlgP
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
thdwlgP
Top achievements
Rank 1
Share this question
or