I am using a UltraWinGrid and would like to have two columns under one heading. I should also note that I am doing this by adding the columns at runtime.
I cannot find anywhere in the documentation that describes what I am trying to achieve. Any help would be appreciated.
The result:
| | Header 1 | Header 2 |
--------------------------------------------------
|Row 1 | Item 1 | Item 2 | Item 1 | Item 2 |
|Row 2 | Item 1 | Item 2 | Item 1 | Item 2 |
|Row 3 | Item 1 | Item 2 | Item 1 | Item 2 |
You can use groups to accomplish this. You will want to create a group for the first column and then groups for each of the groups of two columns. You can then hide the original headers and show only the groups.
The following code is a simple example of this:
The Create a Multiple-Row Layout Using Levels help topic also has another example.