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
Specify
GridLines="None"in theasp:GridViewtag or in your code-behind: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.