Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 528 Bytes

File metadata and controls

11 lines (8 loc) · 528 Bytes
layout title date
post
Removing rules="all" from the rendered table from a GridView
2008-04-04

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:

Gridview Border Example

The answer is to simply use GridLines="None" to the GridView declaration.