A
alee
I created an object using BindingList<T> for GetObjects() and assigned that
to a objectBindingSource in a WinForm application. The ObjectBindingSource
then
assigned to a DataGridView. There was a objectBindingNavigation also on the
form. Everything worked as expected when I run the application. However,
after inserting
some new rows, deleting a few rows, and updating yet couple rows, the program
could not save the resulting datasource. I had a hard time converting the
result of the objectBindingSource to a typed DataSet Object table. Everytime
I tried to save, the system returned a message stating that the operation
created duplicated keys in the table and stopped. It appeared that after
converting the ObjectBindingSource to a typed dataset, all unchaged rows were
updated to the dataset as new rows.
I tried to solve the problem with a typed dataset table, it worked fine. But,
I can't rewrite all our business objects to use datatables and datarows
instead of BindingList<object> and objects.
Any suggestions or comments will be greatly appreciated.
to a objectBindingSource in a WinForm application. The ObjectBindingSource
then
assigned to a DataGridView. There was a objectBindingNavigation also on the
form. Everything worked as expected when I run the application. However,
after inserting
some new rows, deleting a few rows, and updating yet couple rows, the program
could not save the resulting datasource. I had a hard time converting the
result of the objectBindingSource to a typed DataSet Object table. Everytime
I tried to save, the system returned a message stating that the operation
created duplicated keys in the table and stopped. It appeared that after
converting the ObjectBindingSource to a typed dataset, all unchaged rows were
updated to the dataset as new rows.
I tried to solve the problem with a typed dataset table, it worked fine. But,
I can't rewrite all our business objects to use datatables and datarows
instead of BindingList<object> and objects.
Any suggestions or comments will be greatly appreciated.