StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Master-Detail GridControl SampleExpand / Collapse
Author
Message
Posted 06/08/2008 3:59:55 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 07/02/2008 2:23:16 AM
Posts: 12, Visits: 45
I'm looking for a sample windows that uses 2 gridcontrols with a master-detail relationship (for example a invoice windows).

I want to use the Maintenance Toolbar for the main gridcontrol, but don't want to use a tollbar for the detail grid (I want to use the gridcontrol functions to add, delete and edit rows), but when I save the main grid, I want to save also the detail grid with his BO.

Thanks,

Alex B.

Post #16901
Posted 06/09/2008 10:03:08 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:58:13 AM
Posts: 4,379, Visits: 4,421
Alex, there are a lot of samples that show how to implement this type of functionality.  The logic is the same whether you are using grids or standard user controls.  You can look at the BBS sample (BusinessBindingSource and Grids) to see how to interact with the grid, but you can look at a number of the other samples to see how to deal with parent and child relationships.  This is a very common thing and is discussed throughout the forum as well as the samples.

You will want to look at the IncludeInForm properties (on the form and the BOs) to see how to get the MaintenanceFormToolstrip to include some records in an Add, Edit, etc. and exclude others while all being included in a Save().

Post #16917
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 4:01am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.