- Timestamp:
- 04/29/13 11:36:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs
r9308 r9401 53 53 54 54 protected override void DeregisterContentEvents() { 55 Content. ColumnNamesChanged -= new EventHandler(Content_ColumnNamesChanged);55 Content.ElementNamesChanged -= new EventHandler(Content_ElementNamesChanged); 56 56 Content.Reset -= new EventHandler(Content_Reset); 57 57 Content.ItemsChanged -= new EventHandler<ArrayValuesChangedEventArgs>(Content_ItemsChanged); … … 63 63 Content.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(Content_ItemsChanged); 64 64 Content.Reset += new EventHandler(Content_Reset); 65 Content. ColumnNamesChanged -= new EventHandler(Content_ColumnNamesChanged);65 Content.ElementNamesChanged -= new EventHandler(Content_ElementNamesChanged); 66 66 } 67 67 … … 106 106 protected virtual void UpdateRowHeaders() { 107 107 for (int i = 0; i < dataGridView.RowCount; i++) { 108 if (i < Content. ColumnNames.Count())109 dataGridView.Rows[i].HeaderCell.Value = Content. ColumnNames.ElementAt(i);108 if (i < Content.ElementNames.Count()) 109 dataGridView.Rows[i].HeaderCell.Value = Content.ElementNames.ElementAt(i); 110 110 else 111 dataGridView.Rows[i].HeaderCell.Value = " Column" + (i + 1);111 dataGridView.Rows[i].HeaderCell.Value = "Element " + (i + 1); 112 112 } 113 113 } … … 124 124 } 125 125 } 126 private void Content_ ColumnNamesChanged(object sender, EventArgs e) {126 private void Content_ElementNamesChanged(object sender, EventArgs e) { 127 127 if (InvokeRequired) 128 Invoke(new EventHandler(Content_ ColumnNamesChanged), sender, e);128 Invoke(new EventHandler(Content_ElementNamesChanged), sender, e); 129 129 else 130 130 UpdateRowHeaders();
Note: See TracChangeset
for help on using the changeset viewer.