views:

232

answers:

4

i have a gridview i wish to style without borders but whenever i use the control asp.net adds in the attribute rules="all" i've tried overriding in on the control like so:

<asp:GridView ID="GridView1" runat="server" rules="none">

but this doesn't work either

+4  A: 

Specify GridLines="None" in the asp:GridView tag or in your code-behind:

myGridView.GridLines = GridLines.None

Additionally, if you have time, it's worth looking into the ASP.NET 2.0 CSS Friendly Control Adapters 1.0, which produce much cleaner markup than the default controls output.

Jeff Sternal
+2  A: 

try the gridlines property, set it to none.

Colin
A: 

is there a CSS solution for this???

besides using CSS friendly control adapters. Thanks

Gabriel Guimarães
A: 

yea, am lookgin for a css solution without changing the gridview properties, thanks

Galal