Gridview printing

Discussion in 'ASP .Net' started by =?Utf-8?B?UGF1bCBPd2Vu?=, Feb 26, 2005.

  1. I have a problem trying to print a gridview in framework 2.0. I have had
    quite a lot of experience writing HTML reports and printing (with page
    breaks) but I am stumped how to do this with a gridview. Since the report
    will almost certainly span more than 1 page, I have tried using a counter as
    the datarow is created and inserting a break (H1) in the relevent places, but
    I still get a full gridview with all the breaks at the top of the file. I
    have also tried to use the rowcreated event to 'Page' through, inserting
    breaks like this:

    itemcount += itemcount
    If itemcount Mod 10 = 0 Then
    GridView1.PageIndex = GridView1.PageIndex + 1

    End If

    this does not seem to work. So any ideas would be great, otherwise I suppose
    I will have to reconsider using Crystal!

    Thanks in advance
     
    =?Utf-8?B?UGF1bCBPd2Vu?=, Feb 26, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon B
    Replies:
    7
    Views:
    7,612
    =?Utf-8?B?SmFzb25DaG9p?=
    Jan 30, 2006
  2. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    18,038
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  3. JustSomeGuy
    Replies:
    13
    Views:
    528
    msalters
    Dec 9, 2004
  4. iffy agbim
    Replies:
    1
    Views:
    131
    Mark Andrews
    May 24, 2004
  5. iffy agbim
    Replies:
    0
    Views:
    132
    iffy agbim
    May 21, 2004
Loading...

Share This Page