Home Forums WPF controls Xceed DataGrid for WPF How to bind a DataTable to a ComboBox in WPF DataGrid?

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • Xceed Support
    Member
    Post count: 5658

    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.

    [quote]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.[/quote]

    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

    Imported from legacy forums. Posted by Jenny [Xceed] (had 4314 views)

    User (Old forums)
    Member
    Post count: 23064

    Jenny,

    Thank you! It’s working now.
     

    Imported from legacy forums. Posted by Hardware (had 1741 views)

    User (Old forums)
    Member
    Post count: 23064

    Thank you for putting this sample together! It was exactly what I needed!

    Imported from legacy forums. Posted by ACanadian (had 3485 views)

Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.