Hi,
Please help me on this. Please look at the attachment.
I have an UltraWinGrid and i need to change the captions for the headers and the problem is i need to put a caption for the two columns as a common header as well. Please look at the screenshot and suggest me how to insert another header on the top or suggest me possible way. It might be simpler but as of now i need it urjent.
Thanks.
There are a couple of ways to do this. One way would be to use Groups and Levels. You simply add Groups to the band and then assign each column's Group Property to the group that column should appear in. You won't be able to get exactly the layout you have here, though. When using Groups, every column must be in a group, and you have some columns here that are not grouped. So you would have to create some extra groups to contain the single columns.
The other option is to use RowLayouts and simulate group headers with unbound columns. You would add an unbound column to the grid and you can set the column.RowLayoutInfo.LabelStyle to LavelOnly so that column shows no cells and arrange the headers however you want.
please, can you show me some code of how to do the "column header caption span" whitin 2 columnes, by using the RowLayoutInfo.LabelStyle property?
I tried to do it but I can't get any successfull result :(
Thanks in advance
Hi alex ,
plz find the sample code(VB.NEt) posted in this thread...
http://forums.infragistics.com/forums/p/15203/56010.aspx#56010
hope it helps you out.
You should set AllowCellSizing and/or AllowLabelSizing on the RowLayoutColumnInfo for the columns you don't want the user to size.
Thank you! That's amazing!!
Finally, I succed with the UltraWinGrid Designer, and making a Group in the Band and including on it the 2 columns.
The only thing I can't do yet is making the columns (or the group, I don't know!!!) to have a fixed width.
Any idea? Thanks!