Problems with ObjectDataSource

Discussion in 'ASP .Net' started by Jonathan Wood, Sep 27, 2008.

  1. I created a page with a GridView bound to a SqlDataSource control and it
    worked fine.

    Now, I've changed it to use an ObjectDataSource instead of the
    SqlDataSource. Everything works fine now except for the following.

    If my filter (a combo box on the same page) results in a larger data set,
    and I select the last page of data in the GridView, and then my filter is
    changed to result in a smaller data set, the GridView is empty. In other
    words, it doesn't detect that the current page is beyond the end of the
    current data.

    When I was using SqlDataSource, it would automatically adjust the current
    page so that it is within range. I've verified my select methods and also my
    select count method. Everything is right on as are my results.

    Does anyone know what's happening here?

    Thanks.

    Jonathan
    Jonathan Wood, Sep 27, 2008
    #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. Replies:
    0
    Views:
    572
  2. Richard Carpenter

    Databinding problems with ObjectDataSource

    Richard Carpenter, Jul 18, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    484
    Richard Carpenter
    Jul 18, 2006
  3. Kevin
    Replies:
    0
    Views:
    703
    Kevin
    Aug 22, 2006
  4. Jeff
    Replies:
    1
    Views:
    803
    Sahridhayan
    Jan 23, 2009
  5. David Thielen

    ObjectDataSource method as another ObjectDataSource

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    242
    Steven Cheng[MSFT]
    Mar 23, 2006
Loading...

Share This Page