468,291 Members | 1,427 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Gridview filter issue

I have a grid view with a filter based on a dropdown list. when i select a
page on the gridview the filter gets dropped. What is the correct way to
handle paging when using a filter?
asp.net 2.0 vb
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Aug 13 '06 #1
2 2150
How are you applying the filter, if you are using a ControlParameter pointed
at the drop downlist that is a paramter of the DataSourceControl that is
bound to the GridView, then this should just work. If you are filtering a
different way then i sugest that you re-apply the filter in the
PageIndexChanged event handler of the GridView.

"WebBuilder451" wrote:
I have a grid view with a filter based on a dropdown list. when i select a
page on the gridview the filter gets dropped. What is the correct way to
handle paging when using a filter?
asp.net 2.0 vb
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Aug 14 '06 #2
Thanks for responding,
On change of DDL i set gv.filter = "lastname like '" + ddl.selectedvalue +
"%'" This doesn't hold state on postback then. so on the page event i have to
re-apply the filter each time. That's no fun. Is there a way for it to hold
state and only apply it once?
THanks
KES
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"clickon" wrote:
How are you applying the filter, if you are using a ControlParameter pointed
at the drop downlist that is a paramter of the DataSourceControl that is
bound to the GridView, then this should just work. If you are filtering a
different way then i sugest that you re-apply the filter in the
PageIndexChanged event handler of the GridView.

"WebBuilder451" wrote:
I have a grid view with a filter based on a dropdown list. when i select a
page on the gridview the filter gets dropped. What is the correct way to
handle paging when using a filter?
asp.net 2.0 vb
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Aug 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Ken | last post: by
2 posts views Thread by WebBuilder451 | last post: by
4 posts views Thread by Tomasz Jastrzebski | last post: by
nitindel
1 post views Thread by nitindel | last post: by
13 posts views Thread by SAL | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.