Ciao Patrizia.
>Va bene?
Non conosco bene lo scenario, quindi non saprei dirti con certezza se hai scelto la soluzione migliore.
Comunque sia puoi creare e popolare un Dataset da codice in questo modo:
Dim ds As New DataSet
ds.Tables.Add(New DataTable("Persone"))
ds.Tables("Persone").Columns.Add(New DataColumn("Cognome"))
ds.Tables("Persone").Columns.Add(New DataColumn("Nome"))
ds.Tables("Persone").Columns.Add(New DataColumn("Indirizzo"))
ds.Tables("Persone").Columns.Add(New DataColumn("Citta"))
Dim Row As DataRow
Row = ds.Tables("Persone").NewRow
Row("Cognome") = txtCognome.Text
Row("Nome") = txtNome.Text
Row("Indirizzo") = txtIndirizzo.Text
Row("Citta") = txtCitta.Text
ds.Tables("Persone").Rows.Add(Row)
Facci sapere...
Ciao