Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
885
Groups/Columns alignments
posted

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 = True

End Sub

 

Parents
  • 885
    posted

    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!

     

     

Reply Children
No Data