Free cookie consent management tool by TermsFeed Policy Generator

Changeset 276


Ignore:
Timestamp:
05/29/08 18:27:04 (16 years ago)
Author:
gkronber
Message:

improved comment (#157)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataAnalysis/DatasetView.cs

    r275 r276  
    5454      base.UpdateControls();
    5555      if (Dataset != null) {
    56         // DataGridView is bitching around. The columnCount (maybe also rowCount) is changed it creates
     56        // DataGridView is bitching around. When it's columnCount (maybe also rowCount) is changed it creates
    5757        // new column objects and they have SortMode set to 'automatic'. However this is not allowed if the
    58         // selectionmode is set to 'ColumnHeaderSelect' at the same time resulting in an exception.
    59         // A solution is to set the SelectionMode to CellSelect before any changes. And after the columns
     58        // selectionmode is set to 'ColumnHeaderSelect' at the same time, resulting in an exception.
     59        // A solution is to set the SelectionMode to CellSelect before any changes. After the columns
    6060        // have been updated (and their SortMode set to 'NotSortable') we switch back to SelectionMode=ColumnHeaderSelect.
    6161        dataGridView.SelectionMode = DataGridViewSelectionMode.CellSelect;
Note: See TracChangeset for help on using the changeset viewer.