tags:

views:

1785

answers:

5

is it possible to add rows to a dataset

+5  A: 

yes.

dim row as DataRow 
row = ds.tables(0).NewRow 
' Add Values to Row here 
ds.tables(0).rows.add(row)
Stephen Wrighton
+1  A: 

Yes, you can certainly add rows to the datatables in a dataset.

Check this MSDN page for a how-to. It covers both strongly typed datasets and untyped datasets.

lc
+2  A: 

You can add rows to a datatable, which can be contained in a dataset. Call the 'Add' function on the "Rows" collection of the table.

GWLlosa
+4  A: 

No. But I suspect you mis-worded your question.

You can add rows to a dataTABLE. A Dataset is made up of DataTables (or is empty).

In order to add rows to a DataTable, you first make the DataRow and then .Add it to the DataTable

David
+1  A: 

If you couldn't, it might just be called a set.

See How to: Add Rows to a DataTable

Galwegian