I have a grid containing some data for employees over a date range. cells in col1 contains the employee names, cells in col1 the data for the first day, cells in col2 the data for the second day etc.
How can multiple header rows be enabled and setting col span different.
Header 1 : monthname (should span over cells for days of the same month)
Header 2 : day of month number i.e. "09" (spans 1 cell only)
Header 3 : dayname abbreviation i.e. "Wed"
How can I achieve this ? Any sample code ?
Thanks all. Markus
You could do this by adding Groups to the band and then assigning each column to a group.
Or you could use RowLayouts and add dummy columns that act as group headers by setting LabelPosition to LabelOnly on those columns.
If I like use the grid in hierarchical- or outlookGroupBy-mode as well (for grouping by department names shown as "Küche" on the print screen) which of your suggestions would be the better choice. Furthermore I will have a zoom view of the data showing each day in 5 minute intervals (= 288 cells per day) and therefore one more header row labeled with the days date (spanning over all cells of the day). Based on these requirements, which is the prefered method.
Regards. Markus
Hi Markus,
Having hierarchical data or using OutlookGroupBy does ot make any difference. If you need to have more than 2 levels of headers, though, then the Groups collection of the column will not work for you and you will have to use RowLayouts to acheive what you want.