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 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.
try the gridlines property, set it to none.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With