Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27201

VS 2010 [RESOLVED] Creating a new data table from existing using the "Select" method

$
0
0
Hi,

I'm trying to take a loaded datatable (lets call it ALLDATA) and then use the select method to retrieve a number of rows from that table, which I then want to add to a new datatable (lets call it NEWDATA).

When I use the ALLDATA.Select(MyExpression) it returns an array of rows but I can't seem to find a way to then assign this array of rows to my NEWDATA table.

Is there a simple way to do this, or do I need to loop through each row and add.

Thanks,
N

Viewing all articles
Browse latest Browse all 27201

Trending Articles