S
Sébastien
Hi,
I have 2 parents tables (example : Car and Road). That Car can use n
Roads and Road can be use by n Cars. In that case, I need a middle table
because it is a n-to-n relation. So we had a Link_Car_Road table with the
primary key of Road and Car as foreign key in Link_Car_Road.
So if I want to design a form to show the car informations with all the road
corresponding to that car, I need to use a DataGrid (I think, because it
seems impossible with a ListBox). I am able to show the car ifnromations
with the Link_Car_Road information, but I am unable to get the Road with my
DataGrid. To do it, I set the DataSource of my DataGrid to my DataSet and my
CalueMember to Car.Link_Car_Road_Relation. So when I select a new car
record, I get all the child rows of Link_Car_Road that correspond to that
car. IS there any way to get the Road information instead the middle table
informations when I select a new car row ?
Thank you for your help.
I have 2 parents tables (example : Car and Road). That Car can use n
Roads and Road can be use by n Cars. In that case, I need a middle table
because it is a n-to-n relation. So we had a Link_Car_Road table with the
primary key of Road and Car as foreign key in Link_Car_Road.
So if I want to design a form to show the car informations with all the road
corresponding to that car, I need to use a DataGrid (I think, because it
seems impossible with a ListBox). I am able to show the car ifnromations
with the Link_Car_Road information, but I am unable to get the Road with my
DataGrid. To do it, I set the DataSource of my DataGrid to my DataSet and my
CalueMember to Car.Link_Car_Road_Relation. So when I select a new car
record, I get all the child rows of Link_Car_Road that correspond to that
car. IS there any way to get the Road information instead the middle table
informations when I select a new car row ?
Thank you for your help.