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 21: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 144
1 Rana Waqas 126
2 OriginalGriff 90
3 Abhinav S 84
4 Maciej Los 84
0 Sergey Alexandrovich Kryukov 6,578
1 OriginalGriff 6,298
2 Peter Leow 2,534
3 Abhinav S 2,358
4 Maciej Los 2,352


Advertise | Privacy | Mobile
Web03 | 2.8.150414.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