How can change DataGridTemplateColumn visibility to Collapse and keep selection Value?
I have a DataGrid and a DataGridTemplateColumn in the DataGrid. I set the CellTemplate of the DataGridTemplateColumn by a ComboBox. When I set the DataGridTemplateColumn visibility to Collapse, the Combo Box selection will be set to null. The issue occurs when I replace ComboBox by ListBox with multi selection mode.