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
530
Sort behaviour
posted

Hi,

I wonder what the grid's designed behaviour is when a user change a cell value of a sorted column? Should the row be resorted automatically or does it require any user input (clicking column headers a couple of times).

  • 469350
    Verified Answer
    Offline posted

    Hi Emil,

    The grid does not re-sort the rows automatically. This is because it might be jarring to the user if they modify a value in a cell and then the row suddenly moves to a new position in the grid while they are still editing the row.

    It is left up to you to decide when to re-sort the grid. You do this by calling RefreshSortPosition on the row (if you know a single row just needs to be moved into it's proper place) or the band.SortedColumns.Refresh (which will re-sort all of the rows in the grid).