By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,365 Members | 1,245 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,365 IT Pros & Developers. It's quick & easy.

ASP.NET 2.0 Grid View and multi select list box

P: n/a
Hi,

Using the SqlDataSource/SelectParameters/ControlParameter one can
easily bind a Grid View with a list box (or any other controls), pretty
cool, but my list box is multi select.

My questions is, how can I bind a Grid View Control to a multi select
list box (or any multi values controls)

Thanks

Aug 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
What is the scenario by which you would like this accomplished?
For instance, it's very easy to understand how you would like to bind a
datagrid, using a where clause that came from the selected item of the
listbox - but with multiple items selected, you have the options of AND or
OR for the multiple items

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"probashi" <pr******@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi,

Using the SqlDataSource/SelectParameters/ControlParameter one can
easily bind a Grid View with a list box (or any other controls), pretty
cool, but my list box is multi select.

My questions is, how can I bind a Grid View Control to a multi select
list box (or any multi values controls)

Thanks

Aug 28 '06 #2

P: n/a

David Wier wrote:
What is the scenario by which you would like this accomplished?
For instance, it's very easy to understand how you would like to bind a
datagrid, using a where clause that came from the selected item of the
listbox - but with multiple items selected, you have the options of AND or
OR for the multiple items

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"probashi" <pr******@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi,

Using the SqlDataSource/SelectParameters/ControlParameter one can
easily bind a Grid View with a list box (or any other controls), pretty
cool, but my list box is multi select.

My questions is, how can I bind a Grid View Control to a multi select
list box (or any multi values controls)

Thanks
Here is my scenario:

I have a Grid View that is displaying all the authors from 50 states of
US (pubs db).

I have another List Box showing 50 states of US.
Using the SqlDataSource/SelectParameters/ControlParameter I can
easily bind the Grid View to the list box to show only authors from one
state.
Now I want to make the list box multi select and when I select multiple
states this should show all the authors in all the selected states.

Aug 30 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.