Welcome to the Xceed Community Sign in | Join | Help
Community Search  

How to bind a DataTable to a ComboBox in WPF DataGrid?

Page 2 of 2 (17 items)   < Previous 1 2
Sort Posts: Previous Next
  •  05-19-2008, 3:52 PM Post no. 12374 in reply to 12362

    Re: How to bind a DataTable to a ComboBox in WPF DataGrid?

    This post explains what needs to be done in order to display a value rather than an ID in a cell and in a combobox editor.

    Please write all the necessary codes in XAML (especially the Bindings everywhere!) and in C# that is needed to solve this problem. I'd like to ask you not to suggest to me any sample codes because in those there are pre-filled into-dll-compiled datasets what are so far away from reality.

    The above-mentioned post provides all the XAML and the bindings that are required. How and where a DataTable is filled does not influence the code since a DataTable is being used in both cases.

    Now, since this issue seems to stump many people and has been a recurring question, I have created a sample that incorporates the 2 classes and information from the previous post: ID/Value mapping sample application


    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  05-20-2008, 5:18 AM Post no. 12380 in reply to 12374

    Re: How to bind a DataTable to a ComboBox in WPF DataGrid?

    Jenny,

    Thank you! It's working now.
     

Page 2 of 2 (17 items)   < Previous 1 2
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.