Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a page that contains three dropdown controls outside the gridview
i want to filter the gridview data based on the three dropdown controls

Any one can help me
Posted
Comments
KM Perumal 9-May-13 7:55am    
Use java script

1 solution

HI,
you can make it programitcally ,take the data in Datatable first set the Gridview Datasource = Datatable. & then call DataBind()
Then using on event of dropdown change (dont forget to on autopostback)...
or any button click event if want to use all three dropdown value...
you can reasign the datasource of Gridview.

By Using the same datatable to DataView & its Rowfilter property..
Or using different query... & dont forget to call at last DataBind()

This is the a simple senario of that.


Thanks
Asp.Net & C# Blog[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900