prabhats.net
prabhats.net

Reputation: 444

How to display Master-Child relation in two separate grids in gridviews

How to display Master-Child relation in two separate grids. e.g: Products table: (Master table with productid as primary key) Productid, ProdDesc

Item table: (Child table with productid as foreign key) ItemId, ItemDesc, Productid

On selecting a row in Master, all rows related to that productsid should get displayed in the child grid. We need to link the two events.

Upvotes: 0

Views: 170

Answers (1)

M4N
M4N

Reputation: 96596

Have a look a the ASP.NET data tutorials, e.g: Master/Detail Using a Bulleted List of Master Records with a Details DataList should give you some hints.

Upvotes: 1

Related Questions