Changeset 10623
- Timestamp:
- 03/19/14 14:00:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/DataGridContentView.cs
r10622 r10623 40 40 41 41 private IList<int> _highlightedRowIndices; 42 public IList<int> highlightedRowIndices {42 public IList<int> HighlightedRowIndices { 43 43 get { return _highlightedRowIndices; } 44 44 set { 45 45 _highlightedRowIndices = value; 46 Refresh(); 47 } 48 } 49 50 private IDictionary<int, IList<int>> _highlightedCells; 51 public IDictionary<int, IList<int>> HightlightedCells { 52 get { return _highlightedCells; } 53 set { 54 _highlightedCells = value; 46 55 Refresh(); 47 56 } … … 54 63 dataGridView.KeyUp += dataGridView_KeyUp; 55 64 contextMenuCell.Items.Add(ShowHideColumns); 65 _highlightedCells = new Dictionary<int, IList<int>>(); 66 _highlightedRowIndices = new List<int>(); 56 67 } 57 68 … … 174 185 Color backColor = e.CellStyle.BackColor; 175 186 176 if (highlightedRowIndices != null && highlightedRowIndices.Contains(rowIndex)) { 187 if (HighlightedRowIndices != null && HighlightedRowIndices.Contains(rowIndex) 188 || HightlightedCells != null && HightlightedCells.ContainsKey(e.ColumnIndex) && HightlightedCells[e.ColumnIndex].Contains(e.RowIndex)) { 177 189 backColor = Color.Pink; 178 190 }
Note: See TracChangeset
for help on using the changeset viewer.