Question about subclassed panel and BO binding...


Author
Message
Robin J Giltner
Robin J Giltner
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 105, Visits: 650
I have a small question regarding a panel I have successfully managed to subclass (ok well almost successfully).  After taking the code from the form designer for the panel, and making sticking it into a class, and altering the code to simply get the form to show up properly, I've run into a problem.  The panel has controls bound to a BO that is located on the form, how can I tell the panel class to use these BusinessObjects?

So far, I've changed my Initialization method on the panel class to accept a BusinessLayer object, and changed my New constructor to accept a generic BusinessLayer.  After that, I had to go back into the form's designer and add the parameter to where the panel class gets instantiated to pass it the BO from the Form.

After reviewing all of the steps I took, I figured there is a better way of doing this and was hoping you could point me into the right direction.

Thanks.

Robin Giltner

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Robin J Giltner - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Robin J Giltner - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Robin J Giltner - 19 Years Ago
                         hehe....yup, you pretty much nailed it :)
Trent L. Taylor - 19 Years Ago
                             Another small question, this will work for a PanelManagerPage as well?...
Robin J Giltner - 19 Years Ago
                                 No. You would have to drop a user control on a PanelManagerPage.
Trent L. Taylor - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search