Asp.net GridView spills invalid HTML

I was wondering if there is a way to remove the invalid HTML that the GridView splashes out after it is created?

<table cellspacing="0" rules="all" 

I want to remove the cellspacing and rules attribute.

Thanks!

+4
source share
2 answers

you can remove the rules = "all" by changing the settings of the GridLines GridView property.

thanks

+4
source

Just found that placement

 <asp:GridView CellSpacing="-1" 

removes the unwanted and obsolete cellpacing attribute.

+5
source

All Articles