Solved

How to bind two columns in datagrid in wpf

Posted on 2011-09-12
2
466 Views
Last Modified: 2013-12-17
How to bind two columns in datagrid in wpf.
I have two combo box columns in my datagrid. I want to make those column bind to each other so that if I select values in  one of the  columns it will bring  respective value in other column.
Thank you.
0
Comment
Question by:Masterabhi
2 Comments
 
LVL 18

Accepted Solution

by:
dj_alik earned 500 total points
ID: 36528871
WPF Datagrid Combobox binding to each other within the datagrid
http://stackoverflow.com/questions/2990910/wpf-datagrid-combobox-binding-to-each-other-within-the-datagrid

="{Binding ElementName=anotherCombo, Path=SelectedItem.someName
0
 

Author Closing Comment

by:Masterabhi
ID: 36564059
helpful
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now