- Timestamp:
- 03/24/15 11:17:08 (9 years ago)
- Location:
- branches/HeuristicLab.DatasetRefactor/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DatasetRefactor/sources
- Property svn:mergeinfo changed
-
branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Data.Views/3.3
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data.Views/3.3 merged: 12151
- Property svn:mergeinfo changed
-
branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Data.Views/3.3/EnhancedStringConvertibleMatrixView.cs
r12031 r12247 45 45 public double Minimum { get; set; } 46 46 47 public string FormatPattern { get; set; } 48 47 49 public new DoubleMatrix Content { 48 50 get { return (DoubleMatrix)base.Content; } … … 52 54 public EnhancedStringConvertibleMatrixView() { 53 55 InitializeComponent(); 56 FormatPattern = string.Empty; 54 57 } 55 58 … … 57 60 columnVisibility = null; 58 61 rowVisibility = null; 62 } 63 64 protected override void dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) { 65 if (Content != null && e.RowIndex < Content.Rows && e.ColumnIndex < Content.Columns) { 66 int rowIndex = virtualRowIndices[e.RowIndex]; 67 e.Value = Content[rowIndex, e.ColumnIndex].ToString(FormatPattern); 68 } 59 69 } 60 70 -
branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r12105 r12247 281 281 dataGridView.Rows[e.RowIndex].ErrorText = string.Empty; 282 282 } 283 pr ivatevoid dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) {283 protected virtual void dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) { 284 284 if (Content != null && e.RowIndex < Content.Rows && e.ColumnIndex < Content.Columns) { 285 285 int rowIndex = virtualRowIndices[e.RowIndex];
Note: See TracChangeset
for help on using the changeset viewer.