Sorting the table view changes the existing selection

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 8
    • Affects Version/s: fx2.1, 7u6
    • Component/s: javafx
    • Environment:

      Windows

      If a row is selected in the table view, sorting by any column changes the selection; the selected index usually remains the same so whatever object is at that index based on the new sort order becomes the selected object.
      Is it a bug or a feature? If it is a feature is there an easy way to maintain the existing selection after the sort?
      With the TableViewSample inJavaFX examples I have seen that if I keep on sorting for a few times with different columns, even the index changes in some cases, that is definitely a bug.

            Assignee:
            Jonathan Giles
            Reporter:
            Arvinder S Brar (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: