Making GridView Respond to 2 Drop Down Lists

Posted by raziiq on Stack Overflow See other posts from Stack Overflow or by raziiq
Published on 2010-03-11T02:28:38Z Indexed on 2010/03/13 15:35 UTC
Read the original article Hit count: 221

Filed under:
|
|

Hi there.

I have got 2 Drop Down Lists on my Form and 1 GridView. I want GridView to display the data according to selection from the Drop Down Lists.

For Example, One Drop Down List contains Names and other contains Dates. Both the Drop Down Lists can post back. So if i select a name from 1st Drop Down list, the Grid View should show all the results according to that Name. Similarly if i select the Date from the other Drop Down List , the Grid View should show the results according to the dates. But i cant figure out as how to bind Grid View to respond to 2 Drop Down List.

BTW i am binding both the Drop Down Lists and the Grid View to the DataSource Objects, which is getting data from the database.

Any Suggestions??

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview