R – GridLines Color in IE and FF

asp.netgridlinesgridviewwebforms

I have gridlines set to true on a gridview, i want the lines to be grey.
By default, the lines in IE appear grey, due to my stylesheets; but in Firefox, there is a dark line separating the header columns.

I have tried adding

this.GridView1.Attributes.Add("bordercolor", "#ddd"); 

This fixes the FireFox issue, but in IE it shows the dark lines.

Best Answer

I know it's an old topic but needed solution for this too and @rism's solution did not apply , so i came up with simplest of all.

in css

td
{
 border:1px solid #ddd; 
}
Related Topic