Blog Archives

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

Disabling GridView Validation

If you want to put a gridview on a form with validators, you’ll run into validation issues very quickly. The LinkButton controls cause the page validation. Immediately I looked for a “ValidationGroup” property on the GridView, but unfortunately, none exists.