Click here to Skip to main content
13,296,823 members (40,094 online)
Click here to Skip to main content


60 bookmarked
Posted 1 Aug 2006

How to include a header on each page when printing a DataGrid

, 1 Aug 2006
An article on printing issues of DataGrid
<!--                           INTRODUCTION                                

 The Code Project article submission template (HTML version)

Using this template will help us post your article sooner. To use, just 
follow the 3 easy steps below:
     1. Fill in the article description details
     2. Add links to your images and downloads
     3. Include the main article text

That's all there is to it! All formatting will be done by our submission
scripts and style sheets. 

<!--                        IGNORE THIS SECTION                            -->
<title>The Code Project</title>
BODY, P, TD { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt }
H2,H3,H4,H5 { color: #ff9900; font-weight: bold; }
H2 { font-size: 13pt; }
H3 { font-size: 12pt; }
H4 { font-size: 10pt; color: black; }
PRE { BACKGROUND-COLOR: #FBEDBB; FONT-FAMILY: "Courier New", Courier, mono; WHITE-SPACE: pre; }
CODE { COLOR: #990000; FONT-FAMILY: "Courier New", Courier, mono; }
<link rel="stylesheet" type=text/css href="">
<body bgcolor="#FFFFFF" color=#000000>

<!-------------------------------     STEP 1      --------------------------->
<!--  Fill in the details (CodeProject will reformat this section for you) -->

Title:       Article Title Goes Here
Author:      Author Name 
Environment: VC++ 5.0-6.0, NT 4.0, Win95/98
Keywords:    Control, Dialog, MFC
Level:       Intermediate&quot;
Description: An article on something-or-other
Section      Miscellaneous
SubSection   General

<!-------------------------------     STEP 2      --------------------------->
<!--  Include download and sample image information.                       --> 

<ul class=download>
<li><a href="">Download demo project - XXX Kb </a></li>
<li><a href="">Download source - XXX Kb</a></li>

<p><img src="Article.gif" alt="Sample Image - maximum width is 600 pixels" width=400 height=200></p>

<!-------------------------------     STEP 3      --------------------------->
<!--  Add the article text. Please use simple formatting (<h2>, <p> etc)   --> 


<p>What the article/code snippet does, why it's useful, the problem it solves etc.

<h2>Background (optional)</h2>

<p>Is there any background to this article that may be useful such as an introduction
to the basic ideas presented?

<h2>Using the code</h2>

<p>A brief desciption of how to use the article or code. The class names, the
methods and properties, any tricks or tips.

<p>Blocks of code should be wrapped in &lt;pre> tags like this:

// Any source code blocks look like this

<p>Variable or class names should be wrapped in &lt;code> tags like <code>this</code>.

<h2>Points of Interest</h2>

<p>Did you learn anything interesting/fun/annoying while writing the code? Did you
do anything particularly clever or wild or zany?


<p>Keep a running update of any changes or improvements you've made here.

<!-------------------------------    That's it!   --------------------------->

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Abhilash Nedumpurath
United States United States
I have 3 years of IT experience.
Doing : C#, ASP.NET,VB,SQL Server, Oracle

Currently working in Technopark, Kerala,India

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 1 Aug 2006
Article Copyright 2006 by Abhilash Nedumpurath
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid