How to get rid of GridView border magic?

P

progdis

I want to apply css styles on a GridView, but there is some border
magic in it, which applies border styles on the table.

By default it sets an attribute border="0" on the table. If I set
border width 1px, it adds attribute style="border-style: solid;
border-width: 1px;". I wonder, is it possible any how, to set the
border style like this:

BORDER-RIGHT: #ffffff 0px solid;
BORDER-TOP: #ffffff 1px solid;
BORDER-LEFT: #ffffff 1px solid;
BORDER-BOTTOM: #ffffff 0px solid;

Thanks,
Progdis
 
B

Bruno Alexandre

u can apply 3 css on a GridView

Header CSS
Row CSS
Footer CSS

use <RowStyle <HeaderStyle and <FooterStyele

and in each one use CssClass="yourCSS"
 
P

Prgodis

Yes, I know. The problem is that when I apply style on the GridView:

<asp:GridView CssClass="myCSS">...</asp:GridView>

with my defined border style, it renders table as:

<table class="myCSS" border="0">...</table>

What I want to define border in myCSS and get rid of GridView rendered
border attribute.
 

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