Is it possible to repeat the DataGrid header on the top of each Printed page

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Is it possible to repeat the DataGrid header on the top of each Printed page

    I've got a lengthy DataGrid that I need to print. I can use IE to print the
    page, and everything works great, but I'd like to add a few enhancements. In
    the past (with the old ASP), I've been able to use the THEAD element and the
    display:table-header-group style to repeat a table header (i.e. the column
    headers) on each printed page - it worked great. I'd like to find a way to
    accomplish the same thing using the ASP.NET DataGrid where I could repeat
    the grid header on the top of each printed page.

    If I could just slap
    the THEAD elements around the first rendered row, I'd be free and clear, but
    I've tried everything I can think of.

    A Clue to this and a Possible Solution to this would be appreciated ASAP

    Regards,
    Raja
    Raja Guest

  2. Similar Questions and Discussions

    1. Adding Page Numbers to Printed Repetitions
      Greetings, I have an odd situation that requires me to print consecutive page numbers on printed documents, but not in the usual sense. We need to...
    2. Datagrid Header on All Printed Pages
      In an asp.net app I need to print a lengthy datagrid. How can this be done and still have the datagrid header appear on all printed pages? I am...
    3. Repeat Header??
      Hi, Can I repeat the datagrid header every X rows??? Regards Eval
    4. Repeat Header every 10 rows
      Hi, everyone How can i repeat the datagrid header every 10 rows?? I have tried several methods, but all have failed so far. regards ...
    5. Repeat DataGrid?
      How do I repeat a DataGrid x number of times, where x is the number of DataTables in a DataSet (and using each table in the DataSet as the...
  3. #2

    Default Re: Is it possible to repeat the DataGrid header on the top of each Printed page


    I have similira problem.

    And solution is

    --
    jerne
    -----------------------------------------------------------------------
    jernej's Profile: [url]http://www.highdots.com/forums/m80[/url]
    View this thread: [url]http://www.highdots.com/forums/t69501[/url]

    jernej Guest

  4. #3

    Default Re: Is it possible to repeat the DataGrid header on the top of each Printed page

    U Can Use following dun function to create THEAD:

    Private Sub MakeGridViewPrinterFriendly(ByVal gridView As GridView)
    If gridView.Rows.Count > 0 Then
    gridView.UseAccessibleHeader = True
    gridView.HeaderRow.TableSection = TableRowSection.TableHeader
    End If
    End Sub

    Now call this function in "GridView1_RowDataBound" event as:

    MakeGridViewPrinterFriendly(GridView1)

    Hope it will help you........

    Yatish.
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139