473,386 Members | 1,699 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,386 software developers and data experts.

Gridview border (FireFox) and CSS equivalent

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
Jan 26 '07 #1
3 11403
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.

Jan 26 '07 #2
"GroupReader" <ne***********@hotmail.com>
try these gridview properties: borderstyle="None"
rowstyle-borderstyle="none"
It doesn't work, I still have the border top and bottom with FireFox.

Stan
Jan 27 '07 #3
You can set this:
GridLines="None"

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Jan 30 '07 #4

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...
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: emde | last post by:
So, I am aware of the problem with how the gridview renders in firefox. I am unable to get those "light grey" gridlines in FF but they work fine in IE. In looking at the rendered html, it appears...
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...
0
by: sunny076 | last post by:
Hi, I have a gridview with SelectedRowStyle with cssClass as follows: rowselected { border: solid 10 black;
2
by: progdis | last post by:
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...
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.