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