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
2965
RefreshSortPosition does not move groups
posted

Following on from http://forums.infragistics.com/forums/p/3550/18864.aspx#19703

If I change the cell value of a row that is being used in a grouped sort, and manually call RefreshSortPosition on the row, I am finding that the row position will sometimes change (depending on other sorts on the grid), but it does not move to the correct group.

I can verify it using this code:

    ' Update row with new data

    grdRow.RefreshSortPosition()

    ' Check to see if we should have moved group
    If grdRow.ParentRow IsNot Nothing Then
        If grdRow.ParentRow.IsGroupByRow Then
            ' Get the correct value from the row, for the relevant column
            If CStr(grdRow.Cells(CType(grdRow.ParentRow, UltraGridGroupByRow).Column).Value) <> Cstr(CType(grdRow.ParentRow, UltraGridGroupByRow).Value) Then                                                
                Debug.WriteLine("Row hasn't been moved to the correct group!!!")                                                    
            End If
        End If
    End If

Can anyone think of a reason this would happen?

Parents
  • 2965
    Offline posted

    Furthermore, this does not happen on all columns.  I am trying to see what is different between the columns with the problem, and those without... :-/

Reply Children