how to bind ComboBox with DataTable

Posted by niko on Stack Overflow See other posts from Stack Overflow or by niko
Published on 2010-05-01T12:09:48Z Indexed on 2010/05/01 12:17 UTC
Read the original article Hit count: 200

Filed under:
|

Hi,

I have the DataTable with following columns:

id, Name, Description, ParentId

and would like to create a WPF control (.NET 4.0 framework) which implements a combobox which displays the names which are bound to values of id. So when the user selects a name displayed in the combobox the behind logic has to retrieve its id value.

I would be very thankful if anyone could show the way of doing the described above.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about databinding