filtering search result
-
hi , i am using gridview for displaying search result. after getting the result i want to filter the result by selecting the value from dropdown list which is at the top of gridview.and one more thing when i am selecting any value from dropdownlist the search result should get changed according to selection without going back to the code behind... how can do that?
-
hi , i am using gridview for displaying search result. after getting the result i want to filter the result by selecting the value from dropdown list which is at the top of gridview.and one more thing when i am selecting any value from dropdownlist the search result should get changed according to selection without going back to the code behind... how can do that?
Doing this on the client browser would mean using javascript to show and hide the grid rows which is not very easy. Since you are using gridview you cannot get a row id on the client script for each row. I would suggest you use AJAX to accomplish this. Put the grid inside an update panel and place a dropdown in the header and do the filtering from the serverside using AJAX. I'm not an AJAX expert so you have to dig up the details.
-
Doing this on the client browser would mean using javascript to show and hide the grid rows which is not very easy. Since you are using gridview you cannot get a row id on the client script for each row. I would suggest you use AJAX to accomplish this. Put the grid inside an update panel and place a dropdown in the header and do the filtering from the serverside using AJAX. I'm not an AJAX expert so you have to dig up the details.