Still can't seem to find a solution to printing a lengthy datagrid on
multiple pages including datagrid headeron each page. I am not using
Crystal Reports or Reporting Services or VStudio. Any idea how this can be
done? Any links, examples
Thanks a lot. 4 3723 http://aspnet.4guysfromrolla.com/articles/070903-1.aspx
Scott Mitchell has an excellent solution for this.
<code>
<asp:datagrid>. ..
....<PagerStyle NextPageText="N ext Page >>" PrevPageText="< < Prev.
Page"></PagerStyle> </asp:datagrid>
....<asp:label id="lblMessage " Font-Name="Verdana" Font-Size="Smaller"
runat="server" Font-Italic="True"></asp:label></form>
</code>
This is builtin. I also like including the page number.
<code>
Sub myDataGrid_Page d(ByVal sender As Object, ByVal e As
DataGridPageCha ngedEventArgs)
myDataGrid.Curr entPageIndex = e.NewPageIndex
lblMessage.Text = "Viewing Page " & myDataGrid.Curr entPageIndex + 1
& _
" of " & myDataGrid.Page Count
myDataGrid.Data Bind()
End Sub
</code>
Read up and if all else fails, Google around and you'll find dozens of
examples.
-Eustice
"Jay" wrote: Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal Reports or Reporting Services or VStudio. Any idea how this can be done? Any links, examples
Thanks a lot.
Thanks a lot. I'll give Scott's exampe a try. I have been searching Google
a ton lately but haven't found any other examples. Any ideas where I might
find other examples as well?
Thanks.
"Eustice Scrubb" <Eu***********@ discussions.mic rosoft.com> wrote in message
news:0F******** *************** ***********@mic rosoft.com... http://aspnet.4guysfromrolla.com/articles/070903-1.aspx
Scott Mitchell has an excellent solution for this.
<code> <asp:datagrid>. .. ...<PagerStyle NextPageText="N ext Page >>" PrevPageText="< < Prev. Page"></PagerStyle> </asp:datagrid>
...<asp:label id="lblMessage " Font-Name="Verdana" Font-Size="Smaller" runat="server" Font-Italic="True"></asp:label></form> </code>
This is builtin. I also like including the page number.
<code> Sub myDataGrid_Page d(ByVal sender As Object, ByVal e As DataGridPageCha ngedEventArgs) myDataGrid.Curr entPageIndex = e.NewPageIndex lblMessage.Text = "Viewing Page " & myDataGrid.Curr entPageIndex + 1 & _ " of " & myDataGrid.Page Count myDataGrid.Data Bind() End Sub </code>
Read up and if all else fails, Google around and you'll find dozens of examples.
-Eustice
"Jay" wrote:
Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal Reports or Reporting Services or VStudio. Any idea how this can be done? Any links, examples
Thanks a lot.
It doesn't appear that Scott's example illustrate printing the datagrid
header on the multipple pages.
"Eustice Scrubb" <Eu***********@ discussions.mic rosoft.com> wrote in message
news:0F******** *************** ***********@mic rosoft.com... http://aspnet.4guysfromrolla.com/articles/070903-1.aspx
Scott Mitchell has an excellent solution for this.
<code> <asp:datagrid>. .. ...<PagerStyle NextPageText="N ext Page >>" PrevPageText="< < Prev. Page"></PagerStyle> </asp:datagrid>
...<asp:label id="lblMessage " Font-Name="Verdana" Font-Size="Smaller" runat="server" Font-Italic="True"></asp:label></form> </code>
This is builtin. I also like including the page number.
<code> Sub myDataGrid_Page d(ByVal sender As Object, ByVal e As DataGridPageCha ngedEventArgs) myDataGrid.Curr entPageIndex = e.NewPageIndex lblMessage.Text = "Viewing Page " & myDataGrid.Curr entPageIndex + 1 & _ " of " & myDataGrid.Page Count myDataGrid.Data Bind() End Sub </code>
Read up and if all else fails, Google around and you'll find dozens of examples.
-Eustice
"Jay" wrote:
Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal Reports or Reporting Services or VStudio. Any idea how this can be done? Any links, examples
Thanks a lot.
The problem I have is a very long datagrid that when printed spans several
pages (length wise). When each page is printed it often cuts a row half way
through (then you can't obviously read that row). I also want to have the
header printed on all non-cropped pages.
"Eustice Scrubb" <Eu***********@ discussions.mic rosoft.com> wrote in message
news:0F******** *************** ***********@mic rosoft.com... http://aspnet.4guysfromrolla.com/articles/070903-1.aspx
Scott Mitchell has an excellent solution for this.
<code> <asp:datagrid>. .. ...<PagerStyle NextPageText="N ext Page >>" PrevPageText="< < Prev. Page"></PagerStyle> </asp:datagrid>
...<asp:label id="lblMessage " Font-Name="Verdana" Font-Size="Smaller" runat="server" Font-Italic="True"></asp:label></form> </code>
This is builtin. I also like including the page number.
<code> Sub myDataGrid_Page d(ByVal sender As Object, ByVal e As DataGridPageCha ngedEventArgs) myDataGrid.Curr entPageIndex = e.NewPageIndex lblMessage.Text = "Viewing Page " & myDataGrid.Curr entPageIndex + 1 & _ " of " & myDataGrid.Page Count myDataGrid.Data Bind() End Sub </code>
Read up and if all else fails, Google around and you'll find dozens of examples.
-Eustice
"Jay" wrote:
Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal Reports or Reporting Services or VStudio. Any idea how this can be done? Any links, examples
Thanks a lot. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Veronika |
last post by:
Hi all,
I need to print all the data in my datagrid to a printer, and the user
must be able to choose whether with the grid lines or without. I am a
beginner in .net and I would appreciate any help!!!
Thanks,
Veronika
|
by: Chris Gardner |
last post by:
I have a datagrid that prints a large number of records from a SQL
database. Because it is a large table, when printed the table
"bleeds" from one page to the next. Ideally, I would like to have 8
records to a page, then have the printer page break. Crystal Reports
is not an option.
What would be the best way to do this? I've...
|
by: Dave Bartlett |
last post by:
Hello,
When we print a page containing a datagrid, the first page prints fine, but
all subsequent pages are printed without table / cell borders i.e. the data
is just floating on the page.
Is this a known issue?
Any ideas?
|
by: Amirallia |
last post by:
Hello!
I have a wecontrol table in a page, this table has a number of variable
rows depending of the choice of the user.
But when the table has a large number of rows, the printing of the page
requires 2 pages . The first page is ok, but in the second page of the
printing I have no ligne of the row and no ligne of the column printing
on...
|
by: Jay |
last post by:
I have been searching and searching and searching for a way to print a
lengthy datagrid on multiple pages and persist the header. I also do not
want the last datagrid row on the page to be cut off when printing. Any
ideas, examples, links, etc.?
I do not have access to Reporting Services or Crystal Reports or VStudio.
Thanks a lot.
| |
by: Jay |
last post by:
Hi,
I have this problem with DataGrid printing.
I have a page which contains only DataGrid. When i try to print the
page, only 1st page contains the verticle and horizontal lines of the
grid. The rest of the pages do not contain any lines.
|
by: Jay |
last post by:
Hi,
I have this problem with DataGrid printing.
I have a page which contains only DataGrid. When i try to print the
page, only 1st page contains the verticle and horizontal lines of the
grid. The rest of the pages do not contain any lines.
Second thing, between pages while printing there are some word break of
a line. I dont want this...
|
by: Jay |
last post by:
Hi,
I have this problem with DataGrid printing.
I have a page which contains only DataGrid. When i try to print the
page, only 1st page contains the verticle and horizontal lines of the
grid. The rest of the pages do not contain any lines.
Second thing, between pages while printing there are some word break of
|
by: ruca |
last post by:
I have this problem with DataGrid printing.
I have a page which contains only DataGrid. When i try to print the
page, only 1st page contains the verticle and horizontal lines of the
grid. The rest of the pages do not contain any lines.
Can anybody help me with this??
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |