Q: Using Merge with an array of DataRows objects

G

Geoff Jones

Hi

I'm trying to get an idea straight in my head and I hope somebody can help
me.

I have a DataTable, called Books (and whose table name is Books), which I'm
adding to a dataset as follows:

myDataSet.Merge(Books)

This works fine. I can do things like:

DataGrid1.DataSource = myDataSet.Tables("Books")

and it works.

However, I also know that instead of a table I could add an array of DataRow
objects i.e.

myDataSet.Merge(myDataRows) ' Where myDataRows has been created previously

However, how do I get a datagrid to display these particular rows? The array
does not have a name, in the same way as a Table does, so how can I find the
correct place in the DataSet?

Hope somebody can help.

Geoff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top