How to make the Relation of hierarchical webgrid for 3 layes.
I have 3 tables in my dataset and i wrote relation like this.
dsMeetExp.Relations.Add(dsMeetExp.Tables[
// Define relation for to get tree structure in webgrid.
].Columns[2]);
BUt i got "This constraint cannot be enabled as not all values have corresponding parent values." exception
Please help me to resolve this.
Thanks
Annakuttyy
Annakuttyy,
This sounds like a data error.
The exception states that you have data in one of your child tables that doesn't have corresponding data in its parent table. ADO.NET doesn't allow this to occur, so you have to ensure that all of your child data has corresponding parent data.
Thank you Donald,
Exactly that was the plm.. now i can fix that.
Thankz a lot
Regards,
Annakutty....