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

Multiple Select Listbox - Help

P: n/a
Hi. I am new to C#, and I am having trouble getting the multiple
selection of listbox to work. I have an asp.net web form, and I need
two listboxes which are filled with an access table. I have to be
able to select multiple items, and fill a datagrid with the results.
I can fill 2 listboxes and a datagrid, but not with multiple
selections. So far, I have no code behind, I have completed it with
just using the characteristics of the controls and manipulating the
query statements.

Does someone have a generic code-behind for this that I can relate to
my situation? I realize I have to iterate through the selections, but
I don't understand how. If you would like to see my page, just ask
and I will post it.

Any help would be greatly appreciated.

Thank you.
Nov 26 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Marisa,

Is the SelectionMode property of the ListBox set to
ListSelectionMode.Multiple?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Marisa" <th*************@gmail.comwrote in message
news:bf**********************************@e10g2000 prf.googlegroups.com...
Hi. I am new to C#, and I am having trouble getting the multiple
selection of listbox to work. I have an asp.net web form, and I need
two listboxes which are filled with an access table. I have to be
able to select multiple items, and fill a datagrid with the results.
I can fill 2 listboxes and a datagrid, but not with multiple
selections. So far, I have no code behind, I have completed it with
just using the characteristics of the controls and manipulating the
query statements.

Does someone have a generic code-behind for this that I can relate to
my situation? I realize I have to iterate through the selections, but
I don't understand how. If you would like to see my page, just ask
and I will post it.

Any help would be greatly appreciated.

Thank you.

Nov 26 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.