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
1825
Clearing, in code, all group by columns in the grid?
posted

Morning,

Simple question how does one clear the grid of any group by columns user may have selected during use?

example, to clear all filters in the grid a user may have set during use I do:

If (objGridIs.DisplayLayout.Bands(0).ColumnFilters.Count > 0) Then
 objGridIs.DisplayLayout.Bands(0).ColumnFilters.ClearAllFilters()
End If

I can't seem to find the ClearAllGroupBys().

Thanks

Deasun

Parents
No Data
Reply
  • 1825
    Verified Answer
    posted

    Found It!

    If (objGridIs.DisplayLayout.Bands(0).SortedColumns.Count > 0) Then
      objGridIs.DisplayLayout.Bands(0).SortedColumns.Clear()
    End If

Children
No Data