DataGridView for several tabels in a DataSet
- From: tally.almagor@xxxxxxxxx
- Date: 29 Jan 2007 05:50:19 -0800
I have a DataSet with two tables in it, with a relation between them.
I fill the tables with records programmatically with these commands:
System.Data.DataRow newRow = myTable.NewRow();
//give values to each column in the row
myTable.Rows.Add(newRow);
I want to create a DataGridView that is bounded to this dataset and
show in each row columns from both tables.
But when I set the DataSource of the DataViewGrid to the DataSet, I
can only pick one table from the DataSet as the DataMember. And then I
can only choose columns from that specific table.
Is there a way to "join" the columns of the two tables into one
DataGridView?
Thanks
.
- Follow-Ups:
- Re: DataGridView for several tabels in a DataSet
- From: Bob Barrows [MVP]
- Re: DataGridView for several tabels in a DataSet
- Prev by Date: Re: C# and Accesss - Saving Data
- Next by Date: Re: DataGridView for several tabels in a DataSet
- Previous by thread: Re: C# and Accesss - Saving Data
- Next by thread: Re: DataGridView for several tabels in a DataSet
- Index(es):
Relevant Pages
|
|