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
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
I'm glad you figured it out. Let us know if you have further questions.