468,110 Members | 1,579 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,110 developers. It's quick & easy.

gridview filter paging problem

I have a grid view and filter it based on an event from another control.
I set the filter and it works fine, but when i page it reverts back to the
full set of data from the datasource. How can i maintain the filtered set?
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
May 13 '06 #1
2 4260
K B
Hi,

You need to rebind your gridview to the filtered datasource.

Kit

*** Sent via Developersdex http://www.developersdex.com ***
May 14 '06 #2
I got it to work by re-assigning the filter on each gridview paging event. If
i understood correctly the gridview was to maintan this sort of functionality
accross postbacks? It does for most other events. I get why it's not and i'll
deal with it, but wonder if there is a recomended method? For now i'm using a
hidden control, assigning the value of the current filter and re-assigning
the filter on the event. I'm not calling databind, and it seems to work ok,
am i missing something?

--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"K B" wrote:
Hi,

You need to rebind your gridview to the filtered datasource.

Kit

*** Sent via Developersdex http://www.developersdex.com ***

May 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Henry Habermacher [MVP Access] | last post: by
1 post views Thread by Andrew Nav | last post: by
4 posts views Thread by Bishop | last post: by
2 posts views Thread by WebBuilder451 | last post: by
8 posts views Thread by Greg Lyles | last post: by
2 posts views Thread by antonyliu2002 | last post: by
reply views Thread by Don Miller | last post: by
4 posts views Thread by Don Miller | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.