更新时间:2023-02-04 10:06:24
您在此处创建了两个数据表(table1,table2).
并且在两个表中都有一些值,您可以从数据库中选择它们..
您的表格中有一些数据会产生冲突..尝试消除两者之间的冲突..
否则只需在代码中更改一行,然后尝试
You have created two data tables here(table1, table2).
and in both table there is some values, which you are selecting from database..
In your table there is some data which is producing confliction.. Try to remove the conflict between both..
or else just change a line in your code and try
ds.Relations.Add("FK", ds.Tables(0).Columns("ContractorID"), ds.Tables(1).Columns("ContractorID"))
***的..:)
all the best.. :)