Click here to Skip to main content
11,791,088 members (61,196 online)
Rate this: bad
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 20:59pm
Sergey Alexandrovich Kryukov at 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
0 OriginalGriff 1,329
1 Maciej Los 835
2 ppolymorphe 780
3 KrunalRohit 686
4 CPallini 661

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.1 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2015
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