StrataFrame Forum

DataGridView Maintenance Form and Standard Form...

http://forum.strataframe.net/Topic9799.aspx

By Robin J Giltner - 6/26/2007

When trying to setup a DataGridView on a StrataFrame Form, I've found that simply adding the Business Object, a Business Binding Source pointing to that BO, and a GridView onto a Maintenance Form, the Business Object navigation doesn't update the selected row on the gridview.  However if I add the above components to a Strataframe Standard form, along with a MaintenanceFormToolStrip, using the toolstrip to navigate, the BusinessObject's current row is reflected in the gridview.

Is there some setting on the MaintenanceForm I'm not seeing or is this the intended behaviour?

Thanks,

Robin Giltner

By Trent L. Taylor - 6/26/2007

Is there some setting on the MaintenanceForm I'm not seeing or is this the intended behaviour?

Check the forms IncludeIn... properties as well as the BOs IncludeIn properties.  More than likely there is something set different between the two.  A MaintenanceForm is nothing more than a StandardForm with a MaintenanceFormToolstrip already dropped on it.

By Robin J Giltner - 6/26/2007

Well IncludeinFormNavigate is set to PrimaryBusinessObject.  In fact all of the Includes are set to PrimarybusinessObject save for the Save, which is set to AllBusinessObjects.

I started messing around some, and it seems like when I removed the MaintenanceFormToolStrip from its container, and just placed it on the form, it started working.

Thanks

Robin Giltner

By Ben Hayat - 6/26/2007

Robin J Giltner (06/26/2007)
Well IncludeinFormNavigate is set to PrimaryBusinessObject. In fact all of the Includes are set to PrimarybusinessObject save for the Save, which is set to AllBusinessObjects.



I started messing around some, and it seems like when I removed the MaintenanceFormToolStrip from its container, and just placed it on the form, it started working.



Thanks



Robin Giltner




Robin; this is something I had recently discovered and reported it [I'm not sure if it was recorded]. The problem I ran into, was using the SF Maintenance form and BBS. Somehow, the BBS does not work with toolstrip. However, if you create a new STD SF form, place a header and toolstrip on it manually, then you'll see everything works.



Hope this helps!
By Robin J Giltner - 6/26/2007

Great.  Thanks Ben.

Robin Giltner

By StrataFrame Team - 6/26/2007

Yeah, it appears that the ParentForm property of the MFTS is not being set properly in the template.  There's a great deal of "hooking up" that takes place when the ParentForm property is set.  Once the MFTS has a reference to it's parent, it hooks into the events of the parent and so forth.  For some reason those events are not being attached in a form created by the template.

As Ben mentioned above, though, there is a workaround Smile