datagrid sorting issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DBC User

    datagrid sorting issue

    I have a data grid. In it, it has 4 columns. I allow the user to sort
    the gird by column. I have around 1000 rows in my data grid. There is
    one column called status. The user sorts on status and it shows all the
    rows correctly. Now the user presses SHIFT + uparrow and select 3 rows.
    Now user select right mouse to select a context menu and through
    context menu, the user start a back ground process for these selected 3
    rows. When the process starts, it changes the status of all 3 rows.

    Here is my QUESTION
    1. When the process changes the status, all but the first rows stays
    and all the others gets sorted to its proper place since the status
    changed. The first row doesn't get sorted but the status does get
    changed on that row as well. Why it didn't get sorted?
    2. The user select 3 rows using shift, after the status changed, the
    selection now move the next two rows (since the actual last 2 rows are
    moved to proper places, it automatically select the next 2 rows and
    that is INCORRECT). That makes user confused on which row they actually
    selected. How can I EITHER force the data grid to keep the row
    selection even if the rows get moved?
    OR how can force the sorting to NOT TO CHANGE these 3 rows that are
    being worked on?

    I spend couple of days to track down the issue. Please let me know if
    there is a way to solve this situation.

    Thanks a lot.

Working...