|
|
|
start date: Thu, 12 Jul 2007 17:29:55 -0400,
posted on: microsoft.public.dotnet.framework.adonet
back
| Thread Index |
|
1
Brad
|
|
2
William \(Bill\) Vaughn
|
|
3
Cor Ligthert [MVP]
|
|
4
unknown
|
|
5
Brad
|
|
6
Brad
|
Copying Rows from a DataSet
Is there an easy way to copy rows from one data set to another other than
field by field copy?
Thanks
Brad
Date:Thu, 12 Jul 2007 17:29:55 -0400
Author:
|
Re: Copying Rows from a DataSet
Did you try selecting rows with a DataView and then using the Clone or Copy
methods?
"Brad" wrote in message
news:eZUFNvMxHHA.4384@TK2MSFTNGP02.phx.gbl...
> Is there an easy way to copy rows from one data set to another other than
> field by field copy?
>
> Thanks
>
> Brad
>
Date:Thu, 12 Jul 2007 16:19:02 -0700
Author:
|
Re: Copying Rows from a DataSet
Brad,
I think that this needs a short explanation.
A datarow is an object from the datatable, that uses one other object (the
Columns) from its table to describe what is in it. Therefore as you don't
have the table, you have in fact nothing. The reference to that table is in
the datarow and you cannot reference one row to more tables.
I think therefore that mostly an easier way is to copy the table and than to
remove the rows you don't need.
Cor
"Brad" schreef in bericht
news:eZUFNvMxHHA.4384@TK2MSFTNGP02.phx.gbl...
> Is there an easy way to copy rows from one data set to another other than
> field by field copy?
>
> Thanks
>
> Brad
>
Date:Sat, 14 Jul 2007 06:28:02 +0200
Author:
|
Re: Copying Rows from a DataSet
On Thu, 12 Jul 2007 17:29:55 -0400, "Brad"
wrote:
>Is there an easy way to copy rows from one data set to another other than
>field by field copy?
>
>Thanks
>
>Brad
>
ImportRow?
--
Philip Daniels
Date:Sun, 15 Jul 2007 19:20:52 +0100
Author:
|
Re: Copying Rows from a DataSet
Bill,
Thanks for your suggestion. The DataView was a good solution to my problem.
What I really needed was a way to filter on a table for reporting purposes.
Brad
"William (Bill) Vaughn" wrote in message
news:55EBE1C9-E15E-4459-960B-C45A9835972C@microsoft.com...
> Did you try selecting rows with a DataView and then using the Clone or
> Copy methods?
>
>
> "Brad" wrote in message
> news:eZUFNvMxHHA.4384@TK2MSFTNGP02.phx.gbl...
>> Is there an easy way to copy rows from one data set to another other than
>> field by field copy?
>>
>> Thanks
>>
>> Brad
>>
>
Date:Tue, 17 Jul 2007 13:00:26 -0400
Author:
|
Re: Copying Rows from a DataSet
Cor,
Thanks for the explanation. It helped highlight my problem. I used Bill's
suggestion to create a filtered data view to get the data from my DataSet.
Brad
"Cor Ligthert [MVP]" wrote in message
news:eOHpg7cxHHA.404@TK2MSFTNGP03.phx.gbl...
> Brad,
>
> I think that this needs a short explanation.
>
> A datarow is an object from the datatable, that uses one other object (the
> Columns) from its table to describe what is in it. Therefore as you don't
> have the table, you have in fact nothing. The reference to that table is
> in the datarow and you cannot reference one row to more tables.
>
> I think therefore that mostly an easier way is to copy the table and than
> to remove the rows you don't need.
>
> Cor
>
> "Brad" schreef in bericht
> news:eZUFNvMxHHA.4384@TK2MSFTNGP02.phx.gbl...
>> Is there an easy way to copy rows from one data set to another other than
>> field by field copy?
>>
>> Thanks
>>
>> Brad
>>
>
>
Date:Tue, 17 Jul 2007 13:01:26 -0400
Author:
|
|
|