Changeset 276 for trunk/sources
- Timestamp:
- 05/29/08 18:27:04 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/DatasetView.cs
r275 r276 54 54 base.UpdateControls(); 55 55 if (Dataset != null) { 56 // DataGridView is bitching around. ThecolumnCount (maybe also rowCount) is changed it creates56 // DataGridView is bitching around. When it's columnCount (maybe also rowCount) is changed it creates 57 57 // 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. A nd after the columns58 // 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 60 60 // have been updated (and their SortMode set to 'NotSortable') we switch back to SelectionMode=ColumnHeaderSelect. 61 61 dataGridView.SelectionMode = DataGridViewSelectionMode.CellSelect;
Note: See TracChangeset
for help on using the changeset viewer.