cmd.CommandText="select AutoId,cCVCode,cInvCode from CheckVouchs"dtCheks = cmd.ExecuteReader(True)
Relations.Add("CheInv",DataTables("inventory").DataCols("cinvCode"),dtCheks.DataCols("cInvCode"))
提示错误:Cannot create a DataRelation if Parent or Child Columns are not in a DataSet.
请问问题出在哪儿?