Gridview border (FireFox) and CSS equivalent

  • Thread starter Thread starter Stan SR
  • Start date Start date
S

Stan SR

Hi,

How to remove the border of each row (from the gridview control). ?
I set borderWidth to 0, and the borders are not displayed with IE, but the
top and bottom borders are with FireFox.

Another question, is it possible to use the gridview control without the
generated table, tr and td tags ?
I would like to use css divs..

Stan
 
try these gridview properties: borderstyle="None"
rowstyle-borderstyle="none"

The gridview, as designed, always creates a table w/ TRs and TDs. I
don't believe there's any "built-in" way of changing that.

You always have the option of creating a new grid that inherits from
asp:gridview. Then you could override the render function and render
the html however you like. I'd consider that a "very advanced" option
though.
 
GroupReader said:
try these gridview properties: borderstyle="None"
rowstyle-borderstyle="none"

It doesn't work, I still have the border top and bottom with FireFox.

Stan
 
Back
Top