Posted 2 November 2022, 7:43 am EST
Hello,
I am able to set the Groupings fine but I can’t figure out how to remove the Groupings. I have tried Clear and that didnt work. I tried Remove but I can’t figure out the syntax. I am sure this is something obvious and I’m just missing it.
Thanks in advance for the assistance,
JR
I am using this code:
Private Sub SetGroups()
Try
If stSortButton = “SlotDate” Then
Dim grps1 As List(Of GroupDescription) = New List(Of GroupDescription)()
Dim grp1 As GroupDescription = New GroupDescription(“Date”, True)
grps1.Add(grp1)
C1FlexGrid1.GroupDescriptions = grps1
Else
C1FlexGrid1.GroupDescriptions.Clear()
End If
Catch ef As Exception
End Try
End Sub