Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
Owner Bindings Error
posted

I'm running into some issues with updating my 'Owners' (in this case it's binded to a datatable of Locations).

DataTable - Locations

LocationID, LocationName, SortOrder, ... 

The BindingSource is bound to the locations table with the LocationID as the key and sorted by the SortOrder.

Now, when I try to change the SortOrder while the calenderInfo is bound, it gives me an error:

Owner Data Binding Error

There is already an Owner with a Key of '2'. Owner keys must be unique.

I don't understand why I get this error when i'm not changing any of the ID's, only their SortOrder.

 

I've also tried to clear the CalenderInfo bindings for owners, however when I try that, I get this Error:

 System.NullReferenceException: Object reference not set to an instance of an object.

 

Anyone have a solution? 

Parents
No Data
Reply Children
No Data