Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/05/12 17:44:58 (12 years ago)
Author:
sforsten
Message:

#1292:

  • corrected displaying of the Text of StringConvertibleMatrixVisibilityDialog and its subclasses
  • corrected sorting of EnhancedStringConvertibleMatrixView
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/EnhancedStringConvertibleMatrixView.cs

    r8861 r8870  
    6767    }
    6868    protected override void UpdateRowHeaders() {
    69       base.UpdateRowHeaders();
    7069      if (rowVisibility != null && Content != null && rowVisibility.Count() == dataGridView.RowCount) {
    71         int i = 0;
    72         foreach (var visibility in rowVisibility) {
    73           dataGridView.Rows[i].Visible = visibility;
    74           i++;
     70        int[] realRowIndex = Enumerable.Range(0, Content.Rows).ToArray();
     71        int[] helper = new int[virtualRowIndices.Length];
     72        Array.Copy(virtualRowIndices, helper, virtualRowIndices.Length);
     73        Array.Sort(helper, realRowIndex);
     74        for (int i = 0; i < dataGridView.RowCount; i++) {
     75          dataGridView.Rows[realRowIndex[i]].Visible = rowVisibility.ElementAt(i);
    7576        }
    7677      }
     78      base.UpdateRowHeaders();
    7779    }
    7880
Note: See TracChangeset for help on using the changeset viewer.