Problems with ObjectDataSource

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonathan Wood

    #1

    Problems with ObjectDataSource

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

    Now, I've changed it to use an ObjectDataSourc e 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

Working...