Click here to Skip to main content
12,819,140 members (27,686 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#3.5

I am working in Wpf and want to select multiple items in a listbox from code behind.
Have done
ListBox1.SelectionMode = SelectionMode.Multiple;

Have googled a lot and have tried a lot of solutions.But still not working.

I have a datatable and all the values which are in my datatable have to be selected in ListBox.I have converted my datatable into a list also.But Still It is not working.

It's urgent.

Posted 22-Aug-12 21:59pm
Sergey Alexandrovich Kryukov 23-Aug-12 15:54pm
What is "not working"? This is not informative. Multiple items are not selected or what? You don't need to Google -- it all should work, that why there is no much Google information.
What did you try?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170308.1 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100