E
Ersin Gençtürk
I have 2 typed data tables inherited from the same dataset schema
One called : table A with an identity column x
column x is constrained to be unique.
Other one is : table B with an identity column x
There are some rows in table A and table B.
When I want to add a row from table A to table B I use the function
TableA.ImportRow(TableB.rows[1]); // for example
If the column x values are the same I get the error :
Column 'column x' is constrained to be unique. Value '34' is already
present.
I want TableA to continue increasing values from the greatest value in Table
B
I tried making column A's values to null but it didn't worked.
TableA.SetColumnXNull();
How can I add a row from a typed datatable to another instance of that typed
datatable with an auto incremeant and uniqe column.
thanks ,
ersin
One called : table A with an identity column x
column x is constrained to be unique.
Other one is : table B with an identity column x
There are some rows in table A and table B.
When I want to add a row from table A to table B I use the function
TableA.ImportRow(TableB.rows[1]); // for example
If the column x values are the same I get the error :
Column 'column x' is constrained to be unique. Value '34' is already
present.
I want TableA to continue increasing values from the greatest value in Table
B
I tried making column A's values to null but it didn't worked.
TableA.SetColumnXNull();
How can I add a row from a typed datatable to another instance of that typed
datatable with an auto incremeant and uniqe column.
thanks ,
ersin