Hi,

I have a DataTable that is bound via a DataView to a DataGrid. Every time I
click on a row on the DataGrid, the underlying DataRow's RowState property
gets changed to Modified. Is this the expected behavior? Is there a way
around this? I checked these rows field by field and there is no difference.

Read further, it gets even more bizarre.

Then I do a GetChanges which gives me the same rows marked as modified as
expected. I update my database with the resulting DataSet, and everything is
good (nothing gets changed since there are really no changes). Then I try to
merge this DataSet with the original big one and I get a constraint
violation. There are no constraints on my DataSet that do not exist on my
database. And the database was happy, so why is the merge failing.

Please note that I am using int identity fields for PKs, but I am not even
adding a row, nor really modifying anything!

Thanks,

Nima