I have a 2 column WPF Datagrid that is bound to an ObservableCollection of people objects. One of the grid's columns is a dropdownlist displaying (correctly) the gender - Male or Female.
What I want to do is dynamically display choices in another dropdownlist in the second column (i.e.Col2) based on the bound value of Male or Female.
I don't see a OnRowBound event; but it seems like I'll need to swap my itemsource on Col2, based on the gender column, to produce the values for the dropdownlist in Col2 column {per row}.
Does this sound doable?
Thanks Ivan,
Here is a complete example I was looking for.
http://sekagra.com/wp/2013/04/dynamic-itemssource-for-combobox-in-a-datagrid/