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).

Parents
  • 7566
    posted

    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://es.infragistics.com/support

    69130VB1.zip
Reply Children