StrataFrame Forum

Using multiple MaintenanceFormToolStrips on the same form

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

By Buluc Celik - 2/15/2010

Hi,



I am trying to use two MaintenanceFormToolStrips on the same form, where I manage a main business object, and its child business object together. I have two listviews, and I would like to use one MaintenanceFormToolStrip for each. However, I have seen that MaintenanceFormToolStrips use the PrimaryBusinessObject of the form. I couldn't find a way to set another business object to it.



Is it possible to use it like that?



Thanks,



Buluc
By Trent L. Taylor - 2/16/2010

It is possible, but I would not go down that road.  If you are using ListVIews, then there is a MUCH better way!  If you open up the StrataFlix sample, we show a number of different scenarios where we do this very thing.  The ListView has the ability to handle the Add, Edit, and Delete for you and ties into a ChildFormDialog.  There is literally no coding of those controls and they will be automatically handled (enabled states, etc.).

Instead of me giving a play-by-play, you may first want to open up the StrataFlix sample to see what we do there as I believe it will save you some time.