Re: How to save a datarow into dataset??

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Cor (non_at_non.com)
Date: 03/18/04


Date: Thu, 18 Mar 2004 11:58:55 +0100

Hi Shalin,

A dataset is an object that have references to datatables, which have
references to rows which contains items

(Or writing simpler)

A dataset contains tables which contains rows which contains items

ds.tables(x).rows(y).item(z)

Is an item in a row in a datatable in a dataset.

To add a row you can do
dim dr as datarow = ds.tables(x).newrow
ds.tables(x).rows.add(dr)

I hope this helps?

Cor



Relevant Pages

  • Re: Speed in Ado.net
    ... passing it in a few instances, ... I pointed out DataTables are reference types so ... how would one go about checking the memory used by a datatable ... I 've tried using your method below but the references throw me. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: record list
    ... However to get the power of a datagrid, play a little with this sample. ... Beside this more general confection view you can use your own "style" with ... A dataset references to a collection of datatables ... Those datatables reference forever back to a dataset to their parent (and ...
    (microsoft.public.dotnet.general)
  • Re: Opinion on best data access method
    ... A dataset is an object that holds references to datatables. ... >> and become a little bit in trouble. ... Cor ...
    (microsoft.public.dotnet.general)
  • Re: Verfahren mit Datasets
    ... A dataset holds datatables (references too as a collection) ... dim dsOld as dataset = olddataset ... And please ask next time in English in these newsgroup. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Web Service Returns DataTable or DataReader
    ... You never can pass a dataview outside your current application. ... is an object that only holds references to other objects (DataTables) inside ... Cor ...
    (microsoft.public.dotnet.general)