473,320 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to get rid of GridView border magic?

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

Aug 19 '06 #1
2 6764
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"
--

Bruno Alexandre
"a Portuguese in Københav, Danmark"

<pr*****@gmail.comescreveu na mensagem
news:11**********************@p79g2000cwp.googlegr oups.com...
>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

Aug 19 '06 #2
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.

Bruno Alexandre wrote:
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"
--

Bruno Alexandre
"a Portuguese in Københav, Danmark"

<pr*****@gmail.comescreveu na mensagem
news:11**********************@p79g2000cwp.googlegr oups.com...
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
Aug 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: HoustonFreeways | last post by:
Here I use the style attributes for a Gridview, such as AlternatingRowStyle-BorderColor <asp:GridView runat=server ID=gv_tabular_data AllowPaging=false AllowSorting=false BorderColor=#F17901...
0
by: Aws | last post by:
My crazy GridView !! I am using Visual Studio 2005, I have a problem with my GridView. I have one access .mdb table and when I update a record on the table EVERYTHING is perfect. I made a Web...
10
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
2
by: Kamen | last post by:
Hello there, I try to define the properties font-size and font-bold of the pager of a gridview using the pagerstyle, but the settings are not appleyd at run time. What could be the reason for...
2
by: =?Utf-8?B?c3Jpbml2YXM=?= | last post by:
Hi All, I'm having a grid view(GridView1) with a hyperlink column.It's ID is Link1 I want to show a popup on hyperlink click. I'm using ajaxToolkit:ModalPopupExtender for that. But when i'm using...
4
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have a gridview. I am using template columns inside the gridview. When I display the gridview on the web page and if there is no value in a particular cell, gridline disappaers...
3
by: dhaneshrs | last post by:
I have a gridview i managed to update using the edit option in the smartmenu. The problem comes when i delete a value or make a value read only. Say i have a table Employee with the following...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
2
by: mrutyunjaya | last post by:
hello, i have two textbox column and one button control in gridvie when i click button it will ask plese enter price in first textbox . when enter values it is asking again. how to pass...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.