DataGridView for several tabels in a DataSet




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

.



Relevant Pages

  • Re: DataGridView for several tabels in a DataSet
    ... System.Data.DataRow newRow = myTable.NewRow; ... I want to create a DataGridView that is bounded to this dataset and ... show in each row columns from both tables. ... I tried setting the relation as the DataMember - but it seems the ...
    (microsoft.public.dotnet.framework.adonet)
  • DataGridView for several tabels in a DataSet
    ... System.Data.DataRow newRow = myTable.NewRow; ... I want to create a DataGridView that is bounded to this dataset and ... show in each row columns from both tables. ... I tried setting the relation as the DataMember - but it seems the ...
    (microsoft.public.dotnet.framework.adonet)
  • DataGridView change row color
    ... I'm trying to change the background color of a row in a DataGridView based upon a value in one of the row columns ... I've stepped through the code so I know that the value of cell 12 is being pulled out and the line ...
    (microsoft.public.dotnet.framework.windowsforms)