Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem in asp.net that indicates that the row already belongs to another table

Shulou Source: shulou.com Published: 2022-06-03 07:35:55 10月03日 Update

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)

Tags: Questions hints code learning methods more conditions help practicality next elements arrays articles theories knowledge articles structures websites materials follow Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux macOS Xiaomi Apple Huawei