Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GridView SQL Datasouce - Parameters

Status
Not open for further replies.

tektipster79

Programmer
Oct 1, 2007
34
US
I have a SQL Datasource attached to a GridView. The SQL Datasource accepts a few parameters. I'm trying to provide sort of multiple filtering capabilities. So I may need to include logic to filter on only one parameter, not both. Is it possible for me to use the same SQL Datasource for all of my filtering cases and just send a value for one of the parameters that will bring back all values? For example, if my filtering options are for filtering cars based on color and brand, and I choose to only filter on color, can I send a value for the brand parameter that will bring back all brands?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top