Hi
I am working on a desktop application using c#.NET. I am using UltrawinGrid in one of my screens. I want one row UltraGrid to consist of multiple rows. In other words I want there should be multiple rows in one UltrGrid Row i.e more vertical space within UltraGrid Row. Is there any way I can set the height of UlrtaGrid Row. Is there any solution available?
Thnx in advance
Azif
Hi Azif,
There are two ways to do this. One way is to use Groups and Levels. You create groups in the band, assign each column to a group, set the LevelCount on the band, and then you can move colmuns around to different levels.
The other way, which is more flexible, is to use RowLayouts. RowLayouts allows you to have cells that span multiple levels and can be arranged into all sorts of unusual layouts. The down side of RowLayouts is that they are a bit more complicated and also they are incomaptible with certain other features of the grid like fixed headers.
Mike,
I am trying to do what you're describing here. I am using groups and levels to display "stacked" columns in my grid. I would like some columns to span the entire row though. I have a LevelCount of two and I am adding my stacked columns to the groups with levels 0 and 1. Can I add a column to a group and have it span both levels?
If there is no way to do this with groups and levels, can you point me in the right direction for doing this with RowLayouts?
Thanks!
Jared
Hi Jared,
No, you can't span the entire row using groups, because no cell can span outside a group.
You could do this using RowLayouts. The best way to do this is to do it in the designer and just drag and drop the columns around. Trying to set up a RowLayout in code can be very complicated, especially if you are not familiar with gridbaglayouts.