This is a migrated thread and some comments may be shown as answers.

[Solved] Grid Master-Detail issue

0 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Samantha
Top achievements
Rank 1
Samantha asked on 23 Jun 2012, 03:08 PM
Hi

How to make this db design work for master-detail?

Order table (master table)
OrderID ItemID
1 1
2 1

Item Table(detail table)
ItemID  Name
1 Apple
2 Orange

The telerik grid wont load the first record's detail, but will display the second correctly like this:
OrderID
1
NULL
2
1 Apple

Everything works fine if I change the itemID to 2 of orderID #2.
OrderID ItemID
1 1
2 2 <<<<--EDIT
Correct report
OrderID
1
1 Apple
2
2 Orange 

Hope someone can help me.

You may also check the attached file, for the real table design that im using

Thanks

Tags
Grid
Asked by
Samantha
Top achievements
Rank 1
Share this question
or