Repeating asp.net grid headers

  • Thread starter Thread starter Kenneth
  • Start date Start date
K

Kenneth

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
 
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
 
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
 
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
 
Back
Top