http://aspnet.4guysfromrolla.com/articles/070903-1.aspx
Scott Mitchell has an excellent solution for this.
<code>
<asp:datagrid>...
....<PagerStyle NextPageText="Next Page >>" PrevPageText="<< Prev.
Page"></PagerStyle> </asp:datagrid>
....<asp:label id="lblMessage" Font-Name="Verdana" Font-Size="Smaller"
runat="server" Font-Italic="True"></asp:label></form>
</code>
This is builtin. I also like including the page number.
<code>
Sub myDataGrid_Paged(ByVal sender As Object, ByVal e As
DataGridPageChangedEventArgs)
myDataGrid.CurrentPageIndex = e.NewPageIndex
lblMessage.Text = "Viewing Page " & myDataGrid.CurrentPageIndex + 1
& _
" of " & myDataGrid.PageCount
myDataGrid.DataBind()
End Sub
</code>
Read up and if all else fails, Google around and you'll find dozens of
examples.
-Eustice
"Jay" wrote:
Still can't seem to find a solution to printing a lengthy datagrid on
multiple pages including datagrid headeron each page. I am not using
Crystal Reports or Reporting Services or VStudio. Any idea how this can be
done? Any links, examples
Thanks a lot.