3. Simple master detail
Simple master detail relation as two plain tables with the same direction
-
Data rows in master detail relation are always defined only in master grid. Changes in both tables are also uploaded only from master grid.
In simple relation are detail data defined as children of master rows.
-
In the master rows set attribute
Detail
to id of the detail grid. All rows with this attribute set are marked as master rows.
All other rows in master grid without this attribute behave as normal rows.
-
In master grid define all the master rows as Expanded='0' CanExpand='0' to not show the detail children in master grid.
-
In master grid define also the detail columns, define them as Visible='0' CanHide='0' to not show them in master grid.
In detail grid define the same detail columns normally.
-
In master grid define Cfg attribute
DetailOn
to specify when the detail grid will be filled: 0 - never, 1 - on focus to master row, 2 - on click to master row, 3 - on double click on master row.
-
In detail grid define attribute Detail='1' to mark it as detail grid to behave sligtly differently than normal grid.