Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 C# C#4.0
We are new to WPF and we can Bind the combobox inside a datagrid but we are unable to populate the inserted value in the combobox while retrieving.
 
Can any body help us? Thanks in Advance.
Posted 18-Jul-12 1:12am
Comments
Sandeep Mewara at 18-Jul-12 14:22pm
   
New, yet would have made some effort, right? Share with us.
dinesh.ms.net at 19-Jul-12 4:04am
   
Hey Sandeep,
Thanks for your suggetion. I have tried and it is working fine in a sample application but we are implementing the same concept in MVVM using prism we are unable to bind the data that is what I am trying for.
you can find my sample code below,
.cs
Locations = new List { new MyLocation { Location = "London", NAMEID = 1 }, new MyLocation { Location = "Amsterdam", NAMEID = 2 } };
Persons = new List<Person> { new Person { NAME = "Jack", NAMEID = 1 }, new Person { NAME = "Jill", NAMEID = 2 } };
DataContext = this;
 
Xaml,











dinesh.ms.net at 19-Jul-12 4:05am
   
Xaml code is,











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 921
1 OriginalGriff 425
2 CPallini 255
3 George Jonsson 181
4 Richard Deeming 175
0 OriginalGriff 5,450
1 Sergey Alexandrovich Kryukov 4,532
2 CPallini 4,500
3 George Jonsson 3,102
4 Gihan Liyanage 2,445


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 18 Jul 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