- Timestamp:
- 07/07/10 14:36:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r3936 r4011 135 135 private void UpdateRowHeaders() { 136 136 int firstDisplayedRowIndex = dataGridView.FirstDisplayedScrollingRowIndex; 137 if (firstDisplayedRowIndex == -1)137 if (firstDisplayedRowIndex == -1) 138 138 firstDisplayedRowIndex = 0; 139 139 int lastDisplaydRowIndex = firstDisplayedRowIndex + dataGridView.DisplayedRowCount(true); … … 241 241 } 242 242 private void dataGridView_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e) { 243 if ( e.RowIndex < Content.Rows && e.ColumnIndex < Content.Columns) {243 if (Content != null && e.RowIndex < Content.Rows && e.ColumnIndex < Content.Columns) { 244 244 int rowIndex = virtualRowIndizes[e.RowIndex]; 245 245 e.Value = Content.GetValue(rowIndex, e.ColumnIndex);
Note: See TracChangeset
for help on using the changeset viewer.