Normal 0 false false false MicrosoftInternetExplorer4
Hi,
I am having difficulties aligning columns in multiple-band grid after creating groups and add columns to each. Now grid looks like band(0) having no relation to band(1) and band(2) and columns are shifted right for band(1) and band(2), however band(1) and band(2) columns aligned to each other fine.
Thanks for help!
Code:
Private Sub CreateColumnGroupings(ByVal layout As UltraGridLayout) Dim Group1 As UltraGridGroup Dim Group2 As UltraGridGroup Dim Group3 As UltraGridGroup Group1 = layout.Bands(0).Groups.Add("ColumnsGroup1", "Group1") Group2 = layout.Bands(0).Groups.Add("ColumnsGroup2", "Group3") Group3 = layout.Bands(0).Groups.Add("ColumnsGroup3", "Group3") Group1.Header.VisiblePosition = 0 Group2.Header.VisiblePosition = 1 Group3.Header.VisiblePosition = 2 For Each col As UltraGridColumn In layout.Bands(0).Columns Dim intTemp as integer = 7 If Not IsStatic(col.Key) Then If col.Index > intTemp Then Group1.Columns.Add(layout.Bands(0).Columns(col.Key)) Else Group2.Columns.Add(layout.Bands(0).Columns(col.Key)) End If Else Group3.Columns.Add(layout.Bands(0).Columns(col.Key)) End If Next Group1.Header.Fixed = True Group2.Header.Fixed = True Group3.Header.Fixed = TrueEnd Sub
Hi Lenny,
I'm sorry, but I do not understand what you are describing or what you are trying to acheive here.
Perhaps you could post some screen shots of what you are getting? Or a small sample project I could run so I can see what you are seeing?
In another words:
- do I need to do anything special while applying groups on non-single band grid?
- should I use Levels instead? Any other tips?
Thanks!