954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

asp.net datagridview - searching for two values

Hello,
I am Visual Web Developer 2005 and MS accsess to make a data driven webpage. I have a web page which has a drop down list and a gridview. Both of them are linked to tables in the database and when the user selects an item (user name) from the list box, the item is used to filter the gridview. [I did this visually i.e configure data source menu).

My question is this. Is it possible to filter the gridview using two user names instead of one?. i.e when the user selects two or more names from the drop down list then the gridview needs to be filtered using ALL the selected names. How can I do this? It would be great if i could do this visually as well. If not the code would also help.

(I am new to this and sorry if the question is too simple.)

Thanks in advance.

nopnop
Newbie Poster
1 post since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

I think you should use ListBox control instead of DropDown List control.

Thanks

Kusno
Junior Poster
191 posts since Aug 2007
Reputation Points: 11
Solved Threads: 17
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You