Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid without a border NOT printing as so!

Status
Not open for further replies.

StuckInTheMiddle

Programmer
Mar 3, 2002
269
US
I have a simple aspx page with a datagrid which I create via VB.NET code. So far so good :)

The grid gets bound to my dataset and added to the page and looks looks great in IE when viewed (no border), but print it and it has a black border.

Is there a way of setting "border=0" on the datagrid? I've tried to use

mygrid.BorderStyle = BorderStyle.None
mygrid.BorderColor = System.Drawing.Color.White

with no luck (mygrid.Borderwidth didnt work either). I also tried some
CSS stylesheet properties with little success.

Has anyone come across this before?


(The more ASP.NET I do, the more Javascript I find myself using)
 
I wasn't using Unit.Pixel with the borderwidth property for anyone who maybe interested.

mygrid.BorderWidth = Unit.Pixel(0)

I really dont like all the explicit converting thats now part of ASP.NET.


(The more ASP.NET I do, the more Javascript I find myself using)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top