Changeset 4850 for trunk/sources
- Timestamp:
- 11/19/10 13:51:45 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Data.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.Designer.cs
r4779 r4850 90 90 | System.Windows.Forms.AnchorStyles.Right))); 91 91 this.dataGridView.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.Disable; 92 this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode. AutoSize;92 this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; 93 93 this.dataGridView.Location = new System.Drawing.Point(0, 52); 94 94 this.dataGridView.Name = "dataGridView"; -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r4819 r4850 124 124 columnsTextBox.Text = Content.Columns.ToString(); 125 125 columnsTextBox.Enabled = true; 126 virtualRowIndizes = Enumerable.Range(0, Content.Rows).ToArray(); 127 128 if (Content.Columns == 0 && dataGridView.ColumnCount != Content.Columns && !Content.ReadOnly) 129 Content.Columns = dataGridView.ColumnCount; 130 else { 131 DataGridViewColumn[] columns = new DataGridViewColumn[Content.Columns]; 132 for (int i = 0; i < columns.Length; ++i) { 133 var column = new DataGridViewTextBoxColumn(); 134 column.FillWeight = 1; 135 columns[i] = column; 136 } 137 dataGridView.Columns.Clear(); 138 dataGridView.Columns.AddRange(columns); 139 } 126 140 127 141 //DataGridViews with rows but no columns are not allowed ! … … 130 144 else 131 145 dataGridView.RowCount = Content.Rows; 132 if (Content.Columns == 0 && dataGridView.ColumnCount != Content.Columns && !Content.ReadOnly) 133 Content.Columns = dataGridView.ColumnCount; 134 else 135 dataGridView.ColumnCount = Content.Columns; 146 136 147 137 148 ClearSorting(); 138 139 149 UpdateColumnHeaders(); 140 150 UpdateRowHeaders();
Note: See TracChangeset
for help on using the changeset viewer.