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
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