Groups | Blog | Home
all groups > dotnet ado.net > december 2005 >

dotnet ado.net : About datatables


Skanda Subramanian
12/30/2005 4:21:29 AM
I think the DataTable.Merge works on the 2.0 Framework?

I think in your case, you can enumerate the rows and use the
LoadDataRow method of the Datatable.
Skanda Subramanian
12/30/2005 4:22:45 AM
I think the DataTable.Merge works on the 2.0 Framework?

I think in your case, you can enumerate the rows and use the
LoadDataRow method of the Datatable.
Miha Markic [MVP C#]
12/30/2005 10:37:43 AM
Use DataTable.Merge method

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

[quoted text, click to view]

Cor Ligthert [MVP]
12/30/2005 10:47:57 AM
Ravindra,

[quoted text, click to view]
It depends what you want, if you want a copy of datatable2 in datatable1 one
than you can use the DataTable.copy command. What you are doing now is
setting the reference of datatable2 to datatable1 as well.

If you want the content to be copied than

datatable1 = datatable2.copy

I hope this helps,

Cor

Miha Markic [MVP C#]
12/30/2005 2:20:42 PM

[quoted text, click to view]

Right, is anybody still using .net 1.x? ;-)
[quoted text, click to view]

Or put datatables into a dataset, make sure that both have same name and do
a DataSet.Merge

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

[quoted text, click to view]

Ravindra
12/30/2005 2:32:33 PM
Hi

How to pass the content of one data table to another data table.I simply
tried using assignment operator...Example: datatable1=datatable2...But,its
not working..

ravindra





Ravindra
12/30/2005 3:19:46 PM
yeah we used merge method, but the error "merge is not a method of
system.data.datatable" occured.
[quoted text, click to view]

AddThis Social Bookmark Button