Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#157 closed defect (done)

Importing data throws exception because of datagridview sort-mode

Reported by: gkronber Owned by: gkronber
Priority: highest Milestone: HeuristicLab 3.3.0
Component: ZZZ OBSOLETE: DataAnalysis Version: 3.1
Keywords: Cc:

Description


Change History (5)

comment:1 Changed 11 years ago by gkronber

  • Status changed from new to assigned

comment:2 Changed 11 years ago by gkronber

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed with r275, r276.

DataGridView is bitching around. When it's column-count (maybe also row-count) is changed it creates new column objects and they have SortMode set to 'automatic'. However this is not allowed if the SelectionMode is set to 'ColumnHeaderSelect' at the same time, resulting in an exception. A solution is to set the SelectionMode to 'CellSelect' before any changes. After the columns have been updated (and their SortMode set to 'NotSortable') we switch back to SelectionMode='ColumnHeaderSelect'.

comment:3 Changed 10 years ago by swagner

  • Milestone changed from 3.1 to Iteration 0

Milestone 3.1 deleted

comment:4 Changed 9 years ago by swagner

  • Milestone changed from Iteration 0 to Current

Milestone Iteration 0 deleted

comment:11 Changed 9 years ago by swagner

  • Milestone changed from Current to HeuristicLab 3.3.0

Milestone Current deleted

Note: See TracTickets for help on using tickets.