Master-Detail GridControl Sample


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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().

Alex Bibiano González
Alex Bibiano González
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 31, Visits: 125
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.

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