Changeset 7730 for branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/View/ColumnGroupView.cs
- Timestamp:
- 04/16/12 11:56:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/View/ColumnGroupView.cs
r7652 r7730 58 58 this.dataGridView.RowHeadersWidthChanged += new EventHandler(dataGridView_RowHeadersWidthChanged); 59 59 this.dataGridView.CellMouseEnter += new DataGridViewCellEventHandler(dataGridView_CellMouseEnter); 60 this.dataGridView.CellFormatting += new DataGridViewCellFormattingEventHandler(dataGridView_CellFormatting); 60 61 61 62 //delegates for virtual mode … … 295 296 } 296 297 297 UpdateDataGridViewHeaderCells();298 298 this.dataGridView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.DisplayedCells); 299 299 this.dataGridView.AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders); … … 311 311 this.dataGridView.Invalidate(); 312 312 UpdateStateInformation(); 313 }314 315 private void UpdateDataGridViewHeaderCells() {316 for (int i = 1; i <= columnGroup.RowCount; i++)317 dataGridView.Rows[i].HeaderCell.Value = i.ToString();318 313 } 319 314 … … 474 469 } 475 470 476 471 private void dataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { 472 this.dataGridView.Rows[e.RowIndex].HeaderCell.Value = e.RowIndex.ToString(); 473 } 477 474 478 475 private string ToExcelColumnIndex(int index) {
Note: See TracChangeset
for help on using the changeset viewer.