Hi,
I want multi levels of columns in Ultrawingrid like
Level1
level1.1 level1.2
Level 1.1.1 Level 1.1.2 Level 1.1.1 level1.2.1 level1.2 .2
I want three levels of column. How can we achive this using ultrawingrid
Hi Mr. Arun,
I have to do the same thing bt my columns comes at runtime ie. i have two dates like "start date" & "End Date" and the dates btween these two dates are my column headers. These dates i want to show as follows :
Kindly guide me for dis..
Thanks in advance.
Hi
Sample for Three level using the rowlayout.......
to get the foll layout.. .
level 3 grouped under level2 and L2 under L1
LEVEL1 ''w/o any cells for this col - only header
LEVEL2A LEVEL2B
LEVEL3A LEVEL3B LEVEL3C LEVEL3D
assuming all the columns exist ion ur coll collection (datasource) ,if not you can add dummy ones..
here let us add LEVEL1 col to collection...
add these codes in initialize event .. .
Dim band As UltraGridBand = ultragrid1.DisplayLayout.Bands(0)
band.UseRowLayout = True ' 'very important
Dim info As RowLayoutColumnInfo
info = column.RowLayoutColumnInfo
info.LabelPosition=LabelPosition.LabelOnly '' can use this code for to display only col header w/o any cell space or below three line of code..
info.MinimumCellSize = New Size(1, 1)
info.PreferredCellSize = New Size(1, 1)
info.OriginY = 0 info.SpanY = 1
//2nd level
info.OriginX = 0 info.SpanX = 2
info.OriginY = 1 info.SpanY = 2
info.OriginX = 2 info.SpanX = 4
//3rd level
info.OriginX = 0 info.SpanX = 1
info.OriginY = 2 info.SpanY = 3
info.OriginX = 1 info.SpanX = 1
info.OriginX = 2 info.SpanX = 1
info.OriginX = 3 info.SpanX = 1
you are done,. jus make sure of the meaning of SPAN and ORIGIN properly ..then rest is child's play of building blocks..
Hope it helps out, .
Njoy. .
Thanks for your quick response.
With two level I am able to do, since I am very new to infragistics, I don't how to set all this for three levels. Can you please give me one example.
Thanks and Regards
Rosy
If you only want two levels, you can use Groups. Groups allow you to assign columns to a group, so you get two levels of headers.
For three levels, you would have to use RowLayouts and the Group headers would be unbound column where the column.RowLayoutInfo.LabelPosition is set to LabelOnly. So they are essentially dummy columns with no cells, just headers. The easiest way to do this is to set it up in the grid designer.