Why does ObservableCollection throws an exception when being modified?

后端 未结 2 703
暗喜
暗喜 2021-01-03 16:11

My application uses a WPF DataGrid. One of the columns is a template column that contains a ComboBox bound to an ObservableCollection

2条回答
  •  -上瘾入骨i
    2021-01-03 16:50

    Is your Room class object actually instantiated? It looks as if your adding an uninitialised value.

提交回复
热议问题