Problems with ObjectDataSource

J

Jonathan Wood

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top