sqldatasource filterexpression and paging

L

lewis

I am having an issue with the paging functionality in the gridview

I have a gridview that is setup to read from a sqldatasource.
The page is a search screen, when the search button is clicked i create
a filterexpression on the fly based on data on the screen.
When the screen comes back up the data is filtered as it should. But if
the users wants to view a second page of results an clicks one of the
paging buttons, my filter expression is discarded.

How do i make my filter expression stay with the datasource?
 

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,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top