Gridlines don't print on page 2 or more

  • Thread starter Thread starter Billy Jacobs
  • Start date Start date
B

Billy Jacobs

I have a datagrid which I am using as a report in a web
application. When I go to print the page from Internet
Explorer, the gridlines on the first page print but on
subsequent pages the gridlines do not print. On the Print
Preview dialog, they display the same as above with the
gridlines on the first page but not on subsequent pages.

How do I fix this?

Thanks,

Billy Jacobs
 
1. There is no attached page for me to try.
2. It is not only occurring on my machine and it is not
the printer settings.
3.It prints the gridlines on the first page but not on the
second page or any page after that.
4. In print preview it shows the gridlines on the first
page, but not on any other page.

Please help

Thanks,

Billy
-----Original Message-----

Hi Billy,

The attached page works fine. Please try it on your side. If the problem
still occurs, I think the problem may be related to your IE or Printer
settings.

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and
confers no rights.
 
Also: I just checked and it works with a different
datagrid style. The style I am using which I am having the
problem with is "Colorful" with gridlines set to both.

Billy
-----Original Message-----

Hi Billy,

The attached page works fine. Please try it on your side. If the problem
still occurs, I think the problem may be related to your IE or Printer
settings.

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and
confers no rights.
 
Hi Billy,

The code below works fine on my side. Would you please post your code?

<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>

<HTML>

<script language="VB" runat="server">

Dim ds As New DataSet()

Sub Page_Load(Sender As Object, E As EventArgs)
Dim sql as String = "select top 80 CustomerID, CompanyName,
ContactName, ContactTitle from customers"
Dim conn as String = "server=sha-china-xp;database=northwind;user
id=sa;password=1234"
Dim da As New SqlDataAdapter(sql, conn)
da.Fill(ds)
DataGrid1.DataSource = ds.Tables(0).DefaultView
DataGrid1.DataBind()
End Sub

</script>

<body>

<form id="Form1" method="post" runat="server">
<asp:DataGrid id="DataGrid1" CellSpacing="0" runat="server"></asp:DataGrid>
</form>

</body>
</HTML>
 
Back
Top