- Timestamp:
- 04/18/19 14:07:11 (6 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/NamedIntervalsView.Designer.cs
r16581 r16817 40 40 this.dataGridView.TabIndex = 0; 41 41 this.dataGridView.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_CellEndEdit); 42 this.dataGridView.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_CellValidated); 42 43 this.dataGridView.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dataGridView_CellValidating); 43 44 this.dataGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_CellValueChanged); -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/NamedIntervalsView.cs
r16730 r16817 153 153 dataGridView.Rows[e.RowIndex].ErrorText = string.Empty; 154 154 } 155 156 private void dataGridView_CellValidated(object sender, DataGridViewCellEventArgs e) { 157 var col = e.ColumnIndex; 158 var row = e.RowIndex; 159 if (double.TryParse(dataGridView.Rows[row].Cells[col].Value.ToString(), out var value)) 160 dataGridView.Rows[row].Cells[col].Value = value; 161 } 155 162 } 156 163 }
Note: See TracChangeset
for help on using the changeset viewer.