Parent-Child in Grids


Author
Message
Sarosh
Sarosh
StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)
Group: Forum Members
Posts: 22, Visits: 116
Hi!

Have a form with

Two BO's (projectBO, subProjectBO)

Two  BusinessBindingSource's (projectBBS, subProjectBBS)

Two grids (projectDGV, subProjectDGV)

Have setup the ParentChild relationship as mentioned in the help but when I change rows in the parent grid (projectDGV) nothing seems to happen in the child grid (subProjectDGV) The Child grid always shows all rows. Have set the ChildAutoFilterOption to MatchCurrentRow on the Child BO

I call the FillAll() for both BO's in the Form's Constructor (after the InitializeComponent())

this.projectBO.FillAll();

this.subProjectBO.FillAll();

Have three questions:

1] What am I doing wrong?

2] Are all rows from the child table being retrieved and then filtered based on the Parent's key or only rows matching the Parent's Key being retrieved from the server?

3] How can I use SP's to retrieve data for the Parent and Child?

Thanks

Sarosh

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search