473,287 Members | 3,295 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,287 software developers and data experts.

Repeating asp.net grid headers

Hi,

I have an asp.net app that users would like to print out
on paper, but the items in the grid are sometimes more
than the height of the paper so the grid is divided onto
several pages.

I can demand my users to use IE4+.

Is there some way to repeat the grid headers on top of
every page written to paper?

TIA

/Kenneth
Nov 17 '05 #1
3 1238
Kenneth,

I think you'd have to "manually" do this. You could create a "Print" page.
On that page you could dynamically create datagrids and add them to the
page. Each datgrid would be configured to the proper size so that the whole
datagrid prints on a single page. Then you could use the each datagrid's
built in paging to set the first datagrid to display page 1 of the data, the
second to display page 2, etc.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Kenneth" <ke***********@chello.se> wrote in message
news:04****************************@phx.gbl...
Hi,

I have an asp.net app that users would like to print out
on paper, but the items in the grid are sometimes more
than the height of the paper so the grid is divided onto
several pages.

I can demand my users to use IE4+.

Is there some way to repeat the grid headers on top of
every page written to paper?

TIA

/Kenneth

Nov 17 '05 #2
Hmmm...

If I created a "Print" page and dynamically created
pageable DataGrids then between every datagrid I should
need to have a paper feed.

How could I program a paper feed (wish some code) in a
dynamically created document?

/Kenneth
-----Original Message-----
Kenneth,

I think you'd have to "manually" do this. You could create a "Print" page.On that page you could dynamically create datagrids and add them to thepage. Each datgrid would be configured to the proper size so that the wholedatagrid prints on a single page. Then you could use the each datagrid'sbuilt in paging to set the first datagrid to display page 1 of the data, thesecond to display page 2, etc.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Kenneth" <ke***********@chello.se> wrote in message
news:04****************************@phx.gbl...
Hi,

I have an asp.net app that users would like to print out
on paper, but the items in the grid are sometimes more
than the height of the paper so the grid is divided onto
several pages.

I can demand my users to use IE4+.

Is there some way to repeat the grid headers on top of
every page written to paper?

TIA

/Kenneth

.

Nov 17 '05 #3
May use CSS

IE4 and up any block level element should do the trick as a style defintion.

BlockLevelElementSelector1 { page-break-before: auto | always | left |
right }
BlockLevelElementSelector2 { page-break-after: auto | always | left |
ight }

<STYLE TYPE="text/css"><!--
..ChapHdr { display:block;page-break-before: always }

--></STYLE>
<H1 CLASS=chapter>Episode I - The Red Pimper...</H1>
.....
<H1 CLASS=chapter>Episode II- The Scarlet Mena.....</H1>
etc..

yes there is
page-break-after:always

As well, possible values are
auto | always | left | right
"Kenneth" <ke***********@chello.se> wrote in message
news:03****************************@phx.gbl...
Hmmm...

If I created a "Print" page and dynamically created
pageable DataGrids then between every datagrid I should
need to have a paper feed.

How could I program a paper feed (wish some code) in a
dynamically created document?

/Kenneth
-----Original Message-----
Kenneth,

I think you'd have to "manually" do this. You could

create a "Print" page.
On that page you could dynamically create datagrids and

add them to the
page. Each datgrid would be configured to the proper size

so that the whole
datagrid prints on a single page. Then you could use the

each datagrid's
built in paging to set the first datagrid to display page

1 of the data, the
second to display page 2, etc.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Kenneth" <ke***********@chello.se> wrote in message
news:04****************************@phx.gbl...
Hi,

I have an asp.net app that users would like to print out
on paper, but the items in the grid are sometimes more
than the height of the paper so the grid is divided onto
several pages.

I can demand my users to use IE4+.

Is there some way to repeat the grid headers on top of
every page written to paper?

TIA

/Kenneth

.

Nov 17 '05 #4

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

Similar topics

1
by: Piet | last post by:
Hello, I have written a small program which dynamically displays data from a data structure in a wx.grid. The grid reacts as expected when the data structure is enlarged: a new row is added and...
0
by: scottmallory | last post by:
Greetings, I am new to Python...and I am having some difficulty updating a grid (wx.grid.PyGridTableBase). Everything works just fine (adding /deleting/ resizing rows, cols) except updating...
11
by: Christoph Boget | last post by:
When building a form using Infopath, you can define a repeating section and stick form fields in that section. I'm curious if ASP.NET has a similar control to make it easy to design something...
2
by: Tom | last post by:
I need to display a series of controls (in my case, a custom control) in a grid-like fashion. This means this particular control would be repeated multiple times, arranged in a row/column format....
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

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.