editable DataGridComboBoxColumn

Oct 1, 2009 at 12:50 PM

Hi there,

to display data I use the DataGrid of the WPF-Toolkit and bind a DataTable to the grid. Everything works fine but I need for some columns an editable ComboBox. The columns are created in code behind. How can I set a DataGridComboBoxColumn to IsEditable = true just for specific columns? Not every DataGridComboBoxColumn should be editable. And the columns have to be generated dynamically because the number and content changed everytime when the DataTable changed.



Oct 2, 2009 at 3:02 AM

Hi funzl,

you could overrides the method GenerateEditingElement() in DataGridComboBoxColumn and sets the comboBox to editable.