I have three header lines: One header group with a subgroup and the columns under the subgroup. This configuration is described in this thread:
http://community.infragistics.com/forums/p/62335/315930.aspx#315930
The problem I have, is to align the height of this 3 group header lines to the height of the header line of a second grid. The second grid has no groups configured, it has multiline header of 3 lines.
Is that possible, that both grid have the same header height?
Thanks. Markus
Hi Markus,
I think this should be possible if I understand you correctly. You can control the size of the headers using the column.RowLayoutColumnInfo.PreferredLabelSize.
Hello Mike,
I have tried this, but it seems not much change. I was not able to paste a picture here (see attached file)!?
At the pic you see the standard view on the left, where each cell is one day. The grid right should show a detailed view of one day. One cell stands for 15 minutes. Therefore all header and rows should be in synch to look nice. Even if some rows are added to the standard grid. Both grids have 3 bands (top band with departments, second with employees and duties, third not used yet). The headers are set and visible for the top band only.
How getting the Height of one header line of the standard view (this grid has 3 header lines at Band[0] as you can see) ?
int headerHeightStandard = this.GridStandard.DisplayLayout.Bands[0].Header.Height;
Using this value to set the first group (SpanY=2 must be 2/3 of the standard header height). But this has no effect
groupOrg.RowLayoutGroupInfo.PreferredLabelSize = new System.Drawing.Size( 150, headerHeightStandard * 2 / 3 );
And for the day group:
groupDay.RowLayoutGroupInfo.PreferredLabelSize = new System.Drawing.Size( 24 * 4 * 10, headerHeightStandard / 3 );
And similar to the other groups. Furthermore the row height of all rows decreases if setting the RowLayoutStype = GroupLayout.
Can you give me some example code?
Regards. Markus