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

Unable to change grid line color

1 Answer 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
arijit
Top achievements
Rank 1
arijit asked on 05 Nov 2008, 09:54 AM
How I can change the grid lines color of rad grid

please give me 2 ways, 1 from css and 1 from property.

thanx in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 05 Nov 2008, 10:25 AM
Hello Arijit,

Please test the following suggestions:

1) In the declaration of your RadGrid

aspx:
<telerik:RadGrid ID="RadGrid1" ... GridLines="Both"
<ItemStyle BorderColor="Azure" /> 

2) Using styles

CSS:
<style type="text/css"
    .GridRow_SkinName td,  
    .GridAltRow_SkinName td,  
    .GridEditRow_SkinName td,  
    .GridFooter_SkinName td,  
    .GridGroupFooter_SkinName td,  
    .GridFilterRow_SkinName td,  
    .GridHeader_SkinName,  
    .ResizeHeader_SkinName,  
    .GroupHeader_SkinName td 
    { 
        border-color: Gray !important; 
    } 
</style> 

Please note that you should change SkinName with the actual name of the used skin. Also you may need to set GridLines to both depending on the skin.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
arijit
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or