473,386 Members | 1,720 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.

Using DataGrid, how to suppress the drawing of lines ?

Hi !

I'm using ASP.NET 1.1 and C# .

For Microsoft Internet Explorer 6.0,
the following code suppresses the drawing of horizontal and vertical lines
in the web page:

DataGrid dg = new DataGrid();
....
dg.BorderStyle = BorderStyle.None;
dg.BorderWidth = Unit.Pixel(0);
....

However, unfortunately, in the HTML I can still see a <table> tag with the
attribute rules="all".
In FireFox, this causes the lines to be drawn !

How can I suppress those lines reliably ?

Your kind help would be appreciated.
Nov 18 '05 #1
3 1511
I don't know why you are getting rules attribute. I am using border:0 in the
stylesheet and there is no rules in the html.

Anyway, regardless what the reason is, setting Attributes["rules"] = "none"
for the grid in PreRender event may help.

Eliyahu

"peshrad" <pe*****@BieberGruppe.de> wrote in message
news:Ov**************@TK2MSFTNGP14.phx.gbl...
Hi !

I'm using ASP.NET 1.1 and C# .

For Microsoft Internet Explorer 6.0,
the following code suppresses the drawing of horizontal and vertical lines
in the web page:

DataGrid dg = new DataGrid();
...
dg.BorderStyle = BorderStyle.None;
dg.BorderWidth = Unit.Pixel(0);
...

However, unfortunately, in the HTML I can still see a <table> tag with the
attribute rules="all".
In FireFox, this causes the lines to be drawn !

How can I suppress those lines reliably ?

Your kind help would be appreciated.

Nov 18 '05 #2
Hi peshrad!

I'm having the same problem!!

rules attribute is a Microsoft IE extension to table:
http://msdn.microsoft.com/library/de...es/rules_0.asp

I also tried the solution suggested by Eliyahu Goldin but it didn't work.
Did you solved this problem??? If so could you plz share with the newsgroup?

cheers!!
David
"peshrad" <pe*****@BieberGruppe.de> wrote in message
news:Ov**************@TK2MSFTNGP14.phx.gbl...
Hi !

I'm using ASP.NET 1.1 and C# .

For Microsoft Internet Explorer 6.0,
the following code suppresses the drawing of horizontal and vertical lines
in the web page:

DataGrid dg = new DataGrid();
...
dg.BorderStyle = BorderStyle.None;
dg.BorderWidth = Unit.Pixel(0);
...

However, unfortunately, in the HTML I can still see a <table> tag with the
attribute rules="all".
In FireFox, this causes the lines to be drawn !

How can I suppress those lines reliably ?

Your kind help would be appreciated.

Nov 18 '05 #3
Hi Eliyahu!

Thanks for the reply! I'm having same problem with peshrad.

I tried your solution but it didn't work out. Any other ideas?

Thanks!!!
David

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I don't know why you are getting rules attribute. I am using border:0 in
the
stylesheet and there is no rules in the html.

Anyway, regardless what the reason is, setting Attributes["rules"] =
"none"
for the grid in PreRender event may help.

Eliyahu

"peshrad" <pe*****@BieberGruppe.de> wrote in message
news:Ov**************@TK2MSFTNGP14.phx.gbl...
Hi !

I'm using ASP.NET 1.1 and C# .

For Microsoft Internet Explorer 6.0,
the following code suppresses the drawing of horizontal and vertical
lines
in the web page:

DataGrid dg = new DataGrid();
...
dg.BorderStyle = BorderStyle.None;
dg.BorderWidth = Unit.Pixel(0);
...

However, unfortunately, in the HTML I can still see a <table> tag with
the
attribute rules="all".
In FireFox, this causes the lines to be drawn !

How can I suppress those lines reliably ?

Your kind help would be appreciated.


Nov 18 '05 #4

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

Similar topics

5
by: C. Alexander | last post by:
I'm making a 'whiteboard' application. I'm trying to have 2+ connected users able to draw at the same time. However, if User1 draws a line, when User2 is drawing, on User1 screen, it will draw...
5
by: Dave | last post by:
I tried posting this in the WinForm forum and got no hits so I am trying it here. After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row...
0
by: Dave | last post by:
Tried posting in the Winform Forum without much luck, so posting here... After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row that is...
2
by: Tor Inge Rislaa | last post by:
How to change row height in a DataGrid I have DataGrid that is filled with data from a table in a DataSet. The content of the cells is text of more than one line (as a note field). What I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.