NigelRocks
asked on
Binding a DropDownList to a GridView
Experts,
I have a grid view that's tied to a database table. One of the fields is Product_Category. I want to select a value for that field from a DropDownList and filter the grid accordingly. How do I do that?
I have a grid view that's tied to a database table. One of the fields is Product_Category. I want to select a value for that field from a DropDownList and filter the grid accordingly. How do I do that?
ASKER
That's not quite what I'm looking for. I want to use a DropDownlist OUTSIDE the grid to filter the contents of the grid.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm assuming I re-query against the DataSource of the GridView. How do I do that?
how do you run the data source initially?
ASKER
I have a dropdownlist bound to a table datasource and a gridview bound to a table source. I run them by hitting "click".
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.4guysfromrolla.com/webtech/050801-1.shtml
http://www.odetocode.com/Articles/231.aspx