Removing rules="all" from the rendered table from a GridView
By default, the ASP.NET GridView control adds rules="all" to its generated table HTML. It might not be terribly obvious how to remove it. I struggled for quite some time adding "border: none;" everywhere in my stylesheet, which wouldn't remove the lines between the rows. Here is a sample:
The answer is to simply use GridLines="None" to the GridView declaration.
Like this post? Please share it!