in

CodeSmith Community

Your Code. Your Way. Faster!

Unable to get Pager to display when inside my site ...

Last post 10-11-2007 3:50 PM by mike123. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-11-2007 1:53 PM

    Unable to get Pager to display when inside my site ...

    Hello All,

    I'm completely baffled by this one. I generated code with a web site and the <TableName>.aspx displays a EntityGridView with a pager at the bottom. I have copied and pasted the contents of the aspx page and the .cs codebehind to my own site the data show up just fine but the control displays without the pager at the bottom. When I debug on my site the "protected override void OnRowCreated(GridViewRowEventArgs e)" evenhandler is fired two times with e.Row.RowType with values of DataRow, and Footer. When I do this on the generated site the eventhanlder fires three times with DataRow, Footer, and Pager as values.

    I have also copied the  <data:EntityGridView  default.skin definiation to my site as well.

     Any assistance in helping get a clue to this is appreciated.

      ~-=M=-~

    • Post Points: 35
  • 10-11-2007 3:50 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 723
    • Points 16,775

    Re: Unable to get Pager to display when inside my site ...

    michael9731,

    Make sure that the page is configured to use the theme where you defined <data:EntityDataSource ... or alternatively set

    AllowPaging="true" on the page for the grid

    Mike Shatny
    -------------------------------------
    Member of the .netTiers team
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 5
Page 1 of 1 (2 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems