Changeset 12151 for trunk/sources/HeuristicLab.Data.Views
- Timestamp:
- 03/06/15 13:26:30 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Data.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/EnhancedStringConvertibleMatrixView.cs
r12012 r12151 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 -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r12077 r12151 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.