Sahil
Fri Dec 31 13:49:04 CST 2004
You could also create a new DataTable and use the ImportRow method instead
of "Add".
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
"Sahil Malik" <contactmethrumyblog@nospam.com> wrote in message
news:OBZy$gq7EHA.208@TK2MSFTNGP12.phx.gbl...
> The DataRow array doesn't actually copy the objects, all it does is copy
> the
> references to the objects and gives you the array. So when you do a
> "Clear"
> the array gets cleared too.
>
> Use a dataview instead?
>
> - Sahil Malik
>
http://dotnetjunkies.com/weblog/sahilmalik
>
>
>
> "MER78" <MER78@discussions.microsoft.com> wrote in message
> news:6B3626B2-0DD3-49D8-A747-C0B112675102@microsoft.com...
>> I'm trying to filter a DataTable... first I do a SELECT on my
>> DataTable...
>> and assign the result to a DataRow array... then I CLEAR the DataTable...
> and
>> try to import the DataRows from the DataRow array... I end up with an
> empty
>> DataTable... what am I doing wrong? And... is there a better way to do
> this?
>
>