Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.5
Hello,
 
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.
 

Thanx
Posted 22-Aug-12 20:59pm
Comments
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?
--SA

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 355
1 _Amy 235
2 Peter Leow 185
3 Andreas Gieriet 180
4 Dave Kreskowiak 155
0 OriginalGriff 7,540
1 Sergey Alexandrovich Kryukov 6,462
2 Maciej Los 3,849
3 Peter Leow 3,653
4 CHill60 2,712


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2014
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