31 writes to Width
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (3)
307_sampleDataGridView.Columns[0].Width = _sampleDataGridView.Width; 310_sampleDataGridViewSelected.Columns[0].Width = _sampleDataGridViewSelected.Width; 333dataGridView.Columns[0].Width = dataGridView.Width;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
311destColumn.Width = srcColumn.Width;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
132col.Width = value;
System.Windows.Forms.Tests (26)
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (8)
43dataGridView.Columns[0].Width = 40; 44dataGridView.Columns[1].Width = 40; 45dataGridView.Columns[2].Width = 40; 46dataGridView.Columns[3].Width = 40; 74dataGridView.Columns[0].Width = 40; 75dataGridView.Columns[1].Width = 40; 76dataGridView.Columns[2].Width = 40; 77dataGridView.Columns[3].Width = 40;
System\Windows\Forms\DataGridViewCellTests.cs (4)
4867Width = 10 4888Width = 10 4999Width = 10 5014Width = 10
System\Windows\Forms\DataGridViewColumnTests.cs (2)
421Width = 10, 424column.Width = 20;
System\Windows\Forms\DataGridViewHeaderCellTests.cs (10)
3168Width = 10 3191Width = 10 3215Width = 10 3253Width = 10 3446Width = 10 3461Width = 10 3478Width = 10 3495Width = 10 3514Width = 10 3530Width = 10
System\Windows\Forms\DataGridViewTests.cs (2)
4005_dataGridView.Columns[0].Width = 50; 4009_dataGridView.Columns[0].Width = 100;
56 references to Width
System.Windows.Forms (38)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (33)
325if (dataGridViewColumn.Width < preferredThickness) 545Debug.Assert(dataGridViewColumn.MinimumWidth == dataGridViewColumn.Width); 571widthSum += dataGridViewColumnTmp.Width; 582imposedWidthSum += dataGridViewColumnTmp.Width; 583availableWidth -= dataGridViewColumnTmp.Width; 726imposedWidthSum += dataGridViewColumnTmp.Width; 736imposedWidthSum += dataGridViewColumnTmp.Width; 737availableWidth -= dataGridViewColumnTmp.Width; 808: weightSum * dataGridViewColumnTmp.Width / availableWidth; 918imposedWidthSum += dataGridViewColumn.Width; 974dataGridViewColumn.UsedFillWeight = dataGridViewColumn.Width * weightSum / availableWidth; 1068dataGridViewColumn.DesiredFillWidth = dataGridViewColumn.Width; 1119dataGridViewColumn.DesiredFillWidth = dataGridViewColumn.Width; 1257Debug.Assert(Math.Abs(dataGridViewColumnTmp.UsedFillWeight * _availableWidthForFillColumns - weightSum * dataGridViewColumnTmp.Width) / weightSum / dataGridViewColumnTmp.Width <= 1.25F / dataGridViewColumnTmp.Width); 1269widthSum += dataGridViewColumnTmp.Width; 1270if (dataGridViewColumnTmp.Width > dataGridViewColumnTmp.MinimumWidth) 2531x += RightToLeftInternal ? -Columns[columnIndex].Width : Columns[columnIndex].Width; 3657int wColumn = Columns[hti._col].Width; 4603cx += dataGridViewColumn.Width; 4921columnX -= Columns[columnIndex].Width; 5667GetColumnXFromIndex(_trackColumnEdge) - Columns[_trackColumnEdge].Width - offsetFromCenter) 5669GetColumnXFromIndex(_trackColumnEdge) + Columns[_trackColumnEdge].Width - offsetFromCenter, 14008if (dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.Fill && dataGridViewColumn.Width < minimumWidth) 14026Debug.Assert(dataGridViewColumn.Width == minimumWidth); 19809leftEdge -= Columns[_ptCurrentCell.X].Width - 1; 19813Columns[_ptCurrentCell.X].Width, Rows.SharedRow(_ptCurrentCell.Y).GetHeight(_ptCurrentCell.Y)); 26047xColumnRightEdge = GetColumnXFromIndex(columnIndex) - Columns[columnIndex].Width; 26050xColumnRightEdge += Columns[firstDisplayedScrollingColumn].Width; 26068xColumnRightEdge = GetColumnXFromIndex(columnIndex) + Columns[columnIndex].Width; 26071xColumnRightEdge -= Columns[firstDisplayedScrollingColumn].Width;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
2728int height = GetPreferredHeight(rowIndex, OwningColumn.Width); 2730if (OwningColumn.Width < width || OwningRow.Height < height)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (2)
1099columnWidthIncrement = adding ? dataGridViewColumn.Width : -dataGridViewColumn.Width;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1316preferredCellThickness = dataGridViewCell.GetPreferredHeight(rowIndex, dataGridViewColumn.Width);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
311destColumn.Width = srcColumn.Width;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (2)
126return col.Width; 276return col.InheritedAutoSizeMode != DataGridViewAutoSizeColumnMode.Fill && col.Width != DATAGRIDVIEWCOLUMN_defaultWidth;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DataGridViewColumnDesignerTests.cs (1)
61column.Width.Should().Be(150);
System.Windows.Forms.Tests (14)
System\Windows\Forms\DataGridViewColumnTests.cs (14)
51Assert.Equal(100, column.Width); 98Assert.Equal(100, column.Width); 111Assert.Equal(100, column.Width); 117Assert.Equal(100, column.Width); 131Assert.Equal(100, column.Width); 137Assert.Equal(100, column.Width); 196Assert.Equal(100, column.Width); 202Assert.Equal(100, column.Width); 245Assert.Equal(100, column.Width); 251Assert.Equal(100, column.Width); 388Assert.Equal(100, column.Width); 394Assert.Equal(100, column.Width); 429Assert.Equal(expectedWidth, column.Width); 435Assert.Equal(expectedWidth, column.Width);