Thomas Mao
Thomas Mao

Reputation: 23

Need a C#/WPF Datagrid with combobox column example

I guest similar questions to this one could have been asked, I still need an answer or example. I need to make sure that, the built-in WPF Datagrid, does it support combobox column editing or not? If it does, please provide me a working example. Though I may find several, even a lot, they have some of the following problem:

1.Outdated, cannot compile with the current Visual Studio (2013 or 2015)

2.Not working

3.Needs a 3rd party control, like WPF Toolkit. This is even more confusing. I may find a lot of different versions, and not working as well. Right now I only want to know whether the built in Datagrid may work or not.

4.combobox options not from a Key-Value list (or some other list). I know I need to specify SelectedItemBinding, SelectedValueBinding, SelectedValuePath, isplayMemberPath. It is so confusing. I just can't get it work.

I've tried ObservableCollection. Do not what went wrong. If you have a really work sample, please just reply me with the code. Thanks!

Upvotes: 1

Views: 7754

Answers (1)

Noam M
Noam M

Reputation: 3164

As metioned by @Ed Plunkett in the comments, use this answer which have a great Datagrid with combobox column example

Upvotes: 1

Related Questions