I am building a WinForms application with a few custom business objects. I bind a List of a single type of object to a DataGridView with BindingList and implement IEditableObject on my object, but when I attempt to edit the values in the DataGridView I get the following exception:
The following exception occurred in the DataGridView:
System.NotImplementedException: The method or operation is not implemented.
– at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component,Object value)
– at System.Windows.Forms.DataGridView.DataGridViewDataConnection.PushValue(Int32 boundColumnIndex, Int32 columnIndex, Int32 rowIndex, Object value)To replace this default dialog, please handle the DataError event.
I’m sure I’m missing something, but I don’t know what it is…
Well, apparently I’m not very observant…
The problem was that ReSharper implemented my properties with NotImplementedException, so when I edited that property through the DataGridView, it threw that Exception.
Thanks, sorry to waste your (and my!) time.