How to get a WPF datagrid combobox to bind within the datagrid elements.
For example: I have a collection of People => Name, Age and Sex.
- Foo, 18, Male
- Boo, 21, Male
- FooBoo, 30, Female
Now inside the datagrid i have a combobox (DataGridComboBoxColumn) with the collection of the names only (Foo, Boo, FooBoo) ItemsSoure and two DataGridTextBoxColumn. The Datagrid is binded to a ObservableCollection or DataTable. Now when the user select a name. The age and sex shows (bind) in the two DataGridTextBoxColumn and is added to the DataTable.
Thank you.