Removing GroupDescription

Posted by: regalit on 2 November 2022, 7:43 am EST

    • Post Options:
    • Link

    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

  • Posted 2 November 2022, 8:05 am EST

    Of course, right after I posted this I figured it out.

    Thanks

    JR

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels