Changeset 12543


Ignore:
Timestamp:
06/30/15 10:54:02 (4 years ago)
Author:
ehopf
Message:

#2335: The correct row will get deleted now if the data is sorted (Defect 8).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessingImprovements/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs

    r12167 r12543  
    494494          List<int> rows = new List<int>();
    495495          for (int i = 0; i < selectedRows.Count; ++i) {
    496             rows.Add(selectedRows[i].Index);
     496            int index = (sortedColumnIndices.Count != 0) ? (Convert.ToInt32(selectedRows[i].HeaderCell.Value) - 1) :
     497              selectedRows[i].Index;
     498            rows.Add(index);
    497499          }
    498500          Content.DeleteRows(rows);
Note: See TracChangeset for help on using the changeset viewer.