470,594 Members | 1,131 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Multiple Select Listbox - Help

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
1 2597
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.

Similar topics

1 post views Thread by Ahmet Karaca | last post: by
2 posts views Thread by DC Gringo | last post: by
1 post views Thread by sab | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.