adding datarows to tables and datatables to datasets

  • Thread starter Thread starter psb
  • Start date Start date
P

psb

I thought this was weird?? is this a bug in framework 1.0??? (1.0 is the
version I am running against)

---------------------------
dim dtAll as new datatable
dim dtTmp as datatable
dtTmp = LoadDataTable("select top 100 from table...")
for i=0 to dtTmp.rows.count -1
''''ERROR ON THIS LINE'''
dtAll.Rows.Add(dtTmp.rows(i))
next
 
This is not an error. A DataRow may only belong to one DataTable at a time.
The same with a DataTable. A DataTable may only belong to one DataSet at a
time.

-Cliff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Edit grid cells in VB 1
SqlDataAdapter 1
ViewState and DataTable 1
DataRow? 1
Dataset and datatable 7
Resorting a dataset 2
Can I convert IList to a DataSet, DataTable or DataView? 6
DataRow Delete Method 5

Back
Top