If you have a WPF DataGrid left of the window with an area to the right to display the selected record. The selected entry consists of Textbox es and ComboBox es, which are disabled until the edit button is pressed. Everything works as expected.
However, when changing the SelectedItem DataGrid , it seems a little inconvenient to populate ComboBox es. Lighter controls, such as TextBlock , can be used until the "Edit" button is clicked, then TextBlock can be disabled for ComboBox es.
I am sure that this can be done with some kind of template, but when I tried to experiment with it, all the events related to ComboBox es report an error because they are no longer present, because they are replaced by TextBlocks in "view mode".
Iām probably mistaken, so some recommendations will be appreciated.
Mitch source share