Hi everybody.
I have a question. How to create fixed columns with grouped header layout?
I made a very simple project showing what exactly I want. With unchecked checkbox everything looks fine, I have fixed columns etc. But when I check this checkbox (just change a ultraGrid1.DisplayLayout.Bands[0].RowLayoutStyle property) fixed columns become unfixed.
I really need grouped columns layout with ability to fix some columns on the left side of the grid, so I extremly need your help with configuring the grid.
Yours sincerely,
Mike
Hi Mike,
Thank you for contacting Infragistics Developer Support.
These two features are mutually exclusive - you cannot fix columns or rows in RowLayout mode. What you could do instead is to use a splitter and put another grid for the fixed columns. Hide the fixed columns in your first grid and hide the non-fixed columns in the second grid. Then set the AutoFit property for the first grid to ResizeAllColumns so that you won’t be able to scroll it.
I have modified your sample in order to demonstrate this approach.
Let me know if you have any additional questions.
Hello,
I have a doubt in this answer. Cant we achieve it in single grid? If group is not available in grid. Fixed columns working fine with the following code in initialise layout event.
MyGrid.Layout.UseFixedHeaders = True
MyGrid.Layout.Bands(0).Columns(0).Header.Fixed = true
This coding not works for groups. I changed the coding for groups also. But its not working. Any other suggestions with single grid?
MyGrid.Layout.Bands(0).Columns(Idx).Group.Header.Fixed = True