Child Form and ChildFormDialog Questions


Author
Message
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Sounds like a bootstrap problem to me Smile. Try re-binding the BBS to the BO in the OnLoad of the child form and see what results you get.

So, something like:

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            //-- Rebind my BBS to the BO        
            MyBBS.BusinessObject = MyChildBO;     
        }

You may also need to requery your grid to re-pull the data from the newly re-bound BBS after you do that.

Basically, what I think is happening is that the BBS (and therefore the grid) is getting bound to an empty instance of the childBO.  The ChildFormDialog then creates a second instance of the childBO populated with the data from the parent form. Since the BBS is never updated to point to this new, populated instance, the data is not being reflected in your grid.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search