D
Dennis C. Drumm
The description for DataTable.LoadDataRow says:
Finds and updates a specific row. If no matching row is found, a new row is
created using the given values.
So I would think from that, that I should be able to fill the object[] array
with values that correspond with each column of that row, and if a row in
the table is found with the same value in the PrimaryKey column, then the
row would be updated with the values in the array. But instead, I get the
error:
A first chance exception of type 'System.Data.ConstraintException' occurred
in system.data.dll
Additional information: Failed to enable constraints. One or more rows
contain values violating non-null, unique, or foreign-key constraints.
What have I missed here? Does LoadDataRow update a row's values?
Thanks,
Dennis
Finds and updates a specific row. If no matching row is found, a new row is
created using the given values.
So I would think from that, that I should be able to fill the object[] array
with values that correspond with each column of that row, and if a row in
the table is found with the same value in the PrimaryKey column, then the
row would be updated with the values in the array. But instead, I get the
error:
A first chance exception of type 'System.Data.ConstraintException' occurred
in system.data.dll
Additional information: Failed to enable constraints. One or more rows
contain values violating non-null, unique, or foreign-key constraints.
What have I missed here? Does LoadDataRow update a row's values?
Thanks,
Dennis