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
315
Refreshing groups
posted

I have a problem in refreshing the windows UltraGrid group values. The problem is that I have collection bound as a data source and the collection raises list change event when the value of the column on which grouping is done. Even then when I change the value of that grouping column of a particular row and do Grid.DataBind() that row doesn’t get shifted to the changed group. I had to call Grid.DisplayLayout.Bands(0).SortedColumns.RefreshSort(True) to get the reflection. Is this a bug in the component or this is how it has been designed?

 

We have been using Infragistics v7.1 for framework 1.1

 

  • 469350
    Verified Answer
    Offline posted

    This is by design. Rows will not automatically re-sort or re-group in the grid. This is to prevent a case where the user types into a cell and moves off that cell and then the row moves to a new position, which would be very strange for the user.

    Calling DataBind essentially does nothing, since the data source has not changed.

    The correct way to do this is to either RefreshSort like you are doing. Or call RefreshSortPosition on the row.