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
1140
Clear Grouping in WHDG?
posted

How do I completely clear out any grouping done by the user, server-side for a WHDG?  I am trying to reset a grid completely w/this following code:

With igWHDG

.GroupingSettings.GroupedColumns.Clear()

.GroupingSettings.ColumnSettings.Clear()

 

 

'.GroupingSettings.EnableColumnGrouping = False

.DataSource =

 

Nothing

.DataKeyFields =

 

""

 

 

With .GridView

.Band.GroupingSettings.GroupedColumns.Clear()

.Band.GroupingSettings.ColumnSettings.Clear()

.ClearDataSource()

.Behaviors.Sorting.SortedColumns.Clear()

.Behaviors.Filtering.ClearBehaviorColumnInfo()

.Behaviors.Filtering.ColumnFilters.Clear()

 

 

'.Behaviors.Filtering.ApplyFilter()

.ResetToDefault()

 

 

End With

.RefreshBehaviors()

 

 

End With

This does everything I want except that the group rows are still present in the grid (and clicking on one causes a javascript errors).