HI~
I want to fix the ColumnHeader.
but in case I set the multi header, it doesn't work.
How I can do this?
source here:
ultraGrid1.DisplayLayout.UseFixedHeaders = true;
ultraGrid1.DisplayLayout.Bands[0].RowLayoutStyle = RowLayoutStyle.GroupLayout;
UltraGridBand band = ultraGrid1.DisplayLayout.Bands[0];
UltraGridColumn column = null;
column = band.Columns.Add("1", "col1");
column.RowLayoutColumnInfo.OriginX = 0;
column.RowLayoutColumnInfo.OriginY = 0;
column.RowLayoutColumnInfo.SpanX = 1;
column.RowLayoutColumnInfo.SpanY = 2;
column = band.Columns.Add("2", "col2");
column.RowLayoutColumnInfo.OriginX = 1;
column = band.Columns.Add("3", "col3");
column.RowLayoutColumnInfo.OriginX = 2;
column.RowLayoutColumnInfo.SpanX = 2;
column.RowLayoutColumnInfo.SpanY = 1;
column = band.Columns.Add("3_1", "col3-1");
column.RowLayoutColumnInfo.OriginY = 1;
column = band.Columns.Add("3_2", "col3-2");
column.RowLayoutColumnInfo.OriginX = 3;
Infragistics.Win.UltraWinGrid.ColumnHeader columnHeader = null;
columnHeader = ultraGrid1.DisplayLayout.Bands[0].Columns["1"].Header;
columnHeader.Fixed = true;
Fixed header are not supported in GroupLayout or ColumnLayout mode. You will have to use the normal RowLayoutStyle.
You can still have groups and levels in this style, but if you have groups, then you will only be able to fix the group header(s), not the column headers.