How to solve the problem in asp.net that indicates that the row already belongs to another table
This article mainly introduces "how to solve the problem that the row already belongs to another table in asp.net". In the daily operation, I believe many people have doubts about how to solve the problem that the row already belongs to another table in asp.net. The editor consulted all kinds of data and sorted out a simple and useful method of operation. I hope it will be helpful for you to answer the question "how to solve the problem in asp.net that the row already belongs to another table"! Next, please follow the editor to study!
The copy code is as follows:
DataTable dt = new DataTable ()
Dt = ds.Tables ["All"] .Clone (); / / the structure of the cloned All is passed to dt
DataRow [] dr=this.dataSet31.Tables ["Product"] .Select ("bc=1"); / / get qualified rows through conditions
For (int iTuno Bandi)