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
470
GroupBy at Design Time
posted

Sorry, I've had a good look but can't find the answer..

How, in code (VB) do I drag up a visible column to group by that column.. all my grids have the header to allow this but I just can see how to, Bands(0).Column("MyCol").AddToGroupByHeader

Thanks in advance

Parents
  • 470
    Suggested Answer
    posted

    Got there in the end, created a quick and nasty sub to do it

        Public Sub GroupTheseColumns(ByRef Grid As UltraWinGrid.UltraGrid, ByVal Column As String, Optional ByVal bExpandAll As Boolean = True)
            Grid.DisplayLayout.Bands(0).SortedColumns.Add(Column, False, True)
            If bExpandAll Then
                Grid.DisplayLayout.Override.GroupByRowInitialExpansionState = UltraWinGrid.GroupByRowInitialExpansionState.Expanded
            End If

        End Sub

Reply Children
No Data