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()
This does everything I want except that the group rows are still present in the grid (and clicking on one causes a javascript errors).
Hello Wallace,
I have created a sample which reproduces your issue in the way I understood it from the details described in your post. Note that this is a web site to run it you need to add ig_res folder. In order to do that you just need to turn into design mode and the folder will be automatically added to your project.
If you have any other questions, please do not hesitate to contact us. I will be really glad if I had helped in this situation.
Looking forward to hear from you.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Hmm, it looks like your example just added a databind() after setting the datasource to nothng, but that didn't work for me. In my example attached: