Free cookie consent management tool by TermsFeed Policy Generator

Changeset 473 for trunk/sources


Ignore:
Timestamp:
08/08/08 21:40:21 (16 years ago)
Author:
gkronber
Message:

reactivated auto-resizing of header cells by disabling resizing before updating the content of the DataGrid and enabling resizing again afterwards. (ticket #240).

This solution is very similar to an earlier problem we had with the auto-layout of DataGrid (see #157)

File:
1 edited

Legend:

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

    r459 r473  
    6767        // have been updated (and their SortMode set to 'NotSortable') we switch back to SelectionMode=ColumnHeaderSelect.
    6868        dataGridView.SelectionMode = DataGridViewSelectionMode.CellSelect;
     69        dataGridView.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
    6970        int rows = Dataset.Rows;
    7071        int columns = Dataset.Columns;
     
    8586        }
    8687        dataGridView.SelectionMode = DataGridViewSelectionMode.ColumnHeaderSelect; // switch back to column selection
     88        dataGridView.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders;
    8789      } else {
    8890        rowsTextBox.Text = "1";
Note: See TracChangeset for help on using the changeset viewer.