Changeset 9629


Ignore:
Timestamp:
06/14/13 10:50:56 (6 years ago)
Author:
mkommend
Message:

#1734: Updated ColumnGroupView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/View/ColumnGroupView.cs

    r9627 r9629  
    538538    #region DataGridView virtual mode event handler
    539539    private void dataGridView_CellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) {
    540       if (!ColumnGroup.Columns.Any()) return;
     540      if (e.ColumnIndex >= ColumnGroup.Columns.Count()) return;
     541      if (e.RowIndex >= ColumnGroup.RowCount) return;
    541542      e.Value = ColumnGroup.Columns.ElementAt(e.ColumnIndex).GetValue(e.RowIndex);
    542543    }
Note: See TracChangeset for help on using the changeset viewer.