I have a UltraWinGrid that is bound to a DataSet, in which a couple of columns are themselves of a collection class type, like so :-
[Name] - string
[Description] - string
[Components] = List<Component>
[Levels] = List<Level>
Currently, these last two fields are hidden columns when bound to the datagrid and used to determine the data to bind two other datagrids on the form.
In order to provide a print view of the screen, I need to make the other two datagrids children of the first datagrid's rows, like so :-
- Item1 Name | Item1 Description
- Components
- Component1 Name | Component1 Value
- Component2 Name | Component2 Value
- Levels
- Level1 Name | Level1 Value
- Level2 Name | Level2 Value
- Components
- Item2 Name | Item2 Description
- Components
- Component1 Name | Component1 Value
- Component2 Name | Component2 Value
- Levels
- Level1 Name | Level1 Value
- Level2 Name | Level2 Value
- Components
I suspect I need to make a new merged dataset, possibly with DataRelations, but I'm struggling to figure out how to bring the data out correctly.
Can anyone steer me in the right direction?