views:

24

answers:

0

I have just started to work on Dynamic Data and after trying a lot I am unable to find the solution of this. I have two tables which are parent child have foreign key relationship. Now on my dynamic data website every time when I view children table the column text is always displayed as parent field name not the child field name. I would try to explain this in following example -

TableOne -
place_id int pk
place_name varchar(50)

TableTwo-
id int PK
city_id int FK (references place_id in TableOne)
...

...

In website when I view TableTwo records I want to display city_id as field name while it displays as place_id.

How can I solve this?