473,382 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 2281
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: s.gregory | last post by:
My page layout is like this: Page >DataList (databound using ObjectDataSource1 contained in page) >>Items >>>UserControl >>>>GridView (databound using another ObjectDataSource2 contained in...
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
7
by: Ken | last post by:
Hi All - I have a filtered GridView. This GridView has a check box in the first column. This check box is used to identify specific rows for delete operations. On the button click event I...
2
by: WebBuilder451 | last post by:
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...
4
by: Tomasz Jastrzebski | last post by:
Hello Everyone, I have a GridView control bound to a plain DataTable object. AutoGenerateEditButton is set to true, Edit button gets displayed, and RowEditing event fires as expected.
0
by: rupinderbatra | last post by:
Hi, I want to implement a client side filter box for a Gridview server control. I dont want to do it server side or AJAX based because the existing architecture does not allow that much...
1
nitindel
by: nitindel | last post by:
Hi All, Please tell me any good site for Gridview control.(not for datagrid). I am facing error in fetching the values of the Bound columns in the gridview: lease tell me how should i...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
12
by: btreddy | last post by:
Hii Experts, im facing a problem with the javascript validation.i've a gridview in my web form and added a footer tempalte and placed textboxes in tht tempalte ,just to add a new row to the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.