Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8126462

Sorting the table view changes the existing selection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8
    • fx2.1, 7u6
    • javafx
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported: