Pasting Into Combobox Column

Feb 7, 2009 at 11:23 PM
I am trying to paste items from an Excel spreadsheet to the Datagrid.  Where it doesn't work is when a column type is combobox.  So I need to be able to paste the values as the displayed text of the combobox rather then the underlining value.  Because the underlining values are just numeric numbers.

Feb 9, 2009 at 7:29 PM
Since by default DataGrid has no paste functionality, I assume that by pasting you mean pasting into a cell in its edit mode. Anyways ComboBox control doesnt itself support Paste. But you can use TextBinding on ComboBoxColumn and set ComboBox to editable using DataGridComboBoxColumn.EditingElementStyle and paste into the editable text box instead.