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 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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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
|
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...
| |