Gridview border (FireFox) and CSS equivalent

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
 
G

GroupReader

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.
 
S

Stan SR

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top