174 references to DataGridViewAutoSizeColumnMode
System.Windows.Forms (173)
winforms\Managed\System\WinForms\DataGridView.cs (6)
1124
if (dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.NotSet && dataGridViewColumn.Visible)
1138
DataGridViewAutoSizeColumnMode
[] previousModes = new
DataGridViewAutoSizeColumnMode
[this.Columns.Count];
2128
if (dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.ColumnHeader)
6982
dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
6984
dataGridViewColumn.AutoSizeMode =
DataGridViewAutoSizeColumnMode
.None;
winforms\Managed\System\WinForms\DataGridViewAutoSizeColumnModeEventArgs.cs (3)
15
private
DataGridViewAutoSizeColumnMode
previousMode;
19
public DataGridViewAutoSizeColumnModeEventArgs(DataGridViewColumn dataGridViewColumn,
DataGridViewAutoSizeColumnMode
previousMode)
36
public
DataGridViewAutoSizeColumnMode
PreviousMode
winforms\Managed\System\WinForms\DataGridViewAutoSizeColumnsModeEventArgs.cs (3)
16
private
DataGridViewAutoSizeColumnMode
[] previousModes;
19
public DataGridViewAutoSizeColumnsModeEventArgs(
DataGridViewAutoSizeColumnMode
[] previousModes)
28
public
DataGridViewAutoSizeColumnMode
[] PreviousModes
winforms\Managed\System\WinForms\DataGridViewBand.cs (5)
802
DataGridViewAutoSizeColumnMode
inheritedAutoSizeMode = dataGridViewColumn.InheritedAutoSizeMode;
803
if (inheritedAutoSizeMode !=
DataGridViewAutoSizeColumnMode
.Fill &&
804
inheritedAutoSizeMode !=
DataGridViewAutoSizeColumnMode
.None &&
805
inheritedAutoSizeMode !=
DataGridViewAutoSizeColumnMode
.NotSet)
810
else if (inheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill && this.DataGridView != null)
winforms\Managed\System\WinForms\DataGridViewColumn.cs (47)
46
private
DataGridViewAutoSizeColumnMode
autoSizeMode;
78
this.autoSizeMode =
DataGridViewAutoSizeColumnMode
.NotSet;
94
DefaultValue(
DataGridViewAutoSizeColumnMode
.NotSet),
98
public
DataGridViewAutoSizeColumnMode
AutoSizeMode
108
case
DataGridViewAutoSizeColumnMode
.NotSet:
109
case
DataGridViewAutoSizeColumnMode
.None:
110
case
DataGridViewAutoSizeColumnMode
.ColumnHeader:
111
case
DataGridViewAutoSizeColumnMode
.AllCellsExceptHeader:
112
case
DataGridViewAutoSizeColumnMode
.AllCells:
113
case
DataGridViewAutoSizeColumnMode
.DisplayedCellsExceptHeader:
114
case
DataGridViewAutoSizeColumnMode
.DisplayedCells:
115
case
DataGridViewAutoSizeColumnMode
.Fill:
118
throw new InvalidEnumArgumentException("value", (int)value, typeof(
DataGridViewAutoSizeColumnMode
));
125
(value ==
DataGridViewAutoSizeColumnMode
.ColumnHeader ||
126
(value ==
DataGridViewAutoSizeColumnMode
.NotSet && this.DataGridView.AutoSizeColumnsMode == DataGridViewAutoSizeColumnsMode.ColumnHeader)))
131
(value ==
DataGridViewAutoSizeColumnMode
.Fill ||
132
(value ==
DataGridViewAutoSizeColumnMode
.NotSet && this.DataGridView.AutoSizeColumnsMode == DataGridViewAutoSizeColumnsMode.Fill)))
138
DataGridViewAutoSizeColumnMode
previousInheritedMode = this.InheritedAutoSizeMode;
139
bool previousInheritedModeAutoSized = previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.Fill &&
140
previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.None &&
141
previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.NotSet;
145
if (this.InheritedAutoSizeMode !=
DataGridViewAutoSizeColumnMode
.Fill &&
146
this.InheritedAutoSizeMode !=
DataGridViewAutoSizeColumnMode
.None &&
147
this.InheritedAutoSizeMode !=
DataGridViewAutoSizeColumnMode
.NotSet)
603
public
DataGridViewAutoSizeColumnMode
InheritedAutoSizeMode
1169
internal
DataGridViewAutoSizeColumnMode
GetInheritedAutoSizeMode(DataGridView dataGridView)
1171
if (dataGridView != null && this.autoSizeMode ==
DataGridViewAutoSizeColumnMode
.NotSet)
1176
return
DataGridViewAutoSizeColumnMode
.AllCells;
1179
return
DataGridViewAutoSizeColumnMode
.AllCellsExceptHeader;
1182
return
DataGridViewAutoSizeColumnMode
.DisplayedCells;
1185
return
DataGridViewAutoSizeColumnMode
.DisplayedCellsExceptHeader;
1188
return
DataGridViewAutoSizeColumnMode
.ColumnHeader;
1191
return
DataGridViewAutoSizeColumnMode
.Fill;
1194
return
DataGridViewAutoSizeColumnMode
.None;
1201
public virtual int GetPreferredWidth(
DataGridViewAutoSizeColumnMode
autoSizeColumnMode, bool fixedHeight)
1203
if (autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.NotSet ||
1204
autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.None ||
1205
autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.Fill)
1210
case
DataGridViewAutoSizeColumnMode
.NotSet:
1211
case
DataGridViewAutoSizeColumnMode
.None:
1212
case
DataGridViewAutoSizeColumnMode
.ColumnHeader:
1213
case
DataGridViewAutoSizeColumnMode
.AllCellsExceptHeader:
1214
case
DataGridViewAutoSizeColumnMode
.AllCells:
1215
case
DataGridViewAutoSizeColumnMode
.DisplayedCellsExceptHeader:
1216
case
DataGridViewAutoSizeColumnMode
.DisplayedCells:
1217
case
DataGridViewAutoSizeColumnMode
.Fill:
1220
throw new InvalidEnumArgumentException("value", (int) autoSizeColumnMode, typeof(
DataGridViewAutoSizeColumnMode
));
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
814
DataGridViewAutoSizeColumnMode
autoSizeColumnMode = owningComboBoxColumn.GetInheritedAutoSizeMode(this.DataGridView);
815
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.ColumnHeader &&
816
autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.Fill &&
817
autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.None)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (105)
552
Debug.Assert(dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill);
582
if (dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
622
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
650
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
672
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill &&
689
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
722
if (dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
771
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill &&
784
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
808
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
838
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill &&
855
dataGridViewColumnTmp.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
910
if (dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
1660
AutoResizeColumn(columnIndex,
DataGridViewAutoSizeColumnMode
.AllCells);
1664
public void AutoResizeColumn(int columnIndex,
DataGridViewAutoSizeColumnMode
autoSizeColumnMode)
1670
protected void AutoResizeColumn(int columnIndex,
DataGridViewAutoSizeColumnMode
autoSizeColumnMode, bool fixedHeight)
1672
if (autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.NotSet ||
1673
autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.None ||
1674
autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.Fill)
1681
case
DataGridViewAutoSizeColumnMode
.NotSet:
1682
case
DataGridViewAutoSizeColumnMode
.None:
1683
case
DataGridViewAutoSizeColumnMode
.ColumnHeader:
1684
case
DataGridViewAutoSizeColumnMode
.AllCellsExceptHeader:
1685
case
DataGridViewAutoSizeColumnMode
.AllCells:
1686
case
DataGridViewAutoSizeColumnMode
.DisplayedCellsExceptHeader:
1687
case
DataGridViewAutoSizeColumnMode
.DisplayedCells:
1688
case
DataGridViewAutoSizeColumnMode
.Fill:
1691
throw new InvalidEnumArgumentException("autoSizeColumnMode", (int)autoSizeColumnMode, typeof(
DataGridViewAutoSizeColumnMode
));
1699
if (autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.ColumnHeader && !this.ColumnHeadersVisible)
1886
int preferredColumnWidth = dataGridViewColumn.GetPreferredWidth((
DataGridViewAutoSizeColumnMode
) autoSizeColumnCriteriaInternal, fixedHeight);
1897
if (dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
1933
AutoResizeColumn(columnIndex, (
DataGridViewAutoSizeColumnMode
)autoSizeColumnsMode, fixedHeight);
9469
(dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.None || dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill))
9502
(dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.None || dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill))
9650
(dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.None || dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill))
9678
(dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.None || dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill))
10731
DataGridViewAutoSizeColumnMode
autoSizeColumnMode = dataGridViewColumn.InheritedAutoSizeMode;
10732
Debug.Assert(autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.NotSet);
10733
bool fixedColumnWidth = autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.None ||
10734
autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.Fill;
10915
(dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.ColumnHeader || (dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.NotSet && this.AutoSizeColumnsMode == DataGridViewAutoSizeColumnsMode.ColumnHeader)))
10922
(dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill || (dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.NotSet && this.AutoSizeColumnsMode == DataGridViewAutoSizeColumnsMode.Fill)))
11038
(dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.ColumnHeader || (dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.NotSet && this.AutoSizeColumnsMode == DataGridViewAutoSizeColumnsMode.ColumnHeader)))
11045
(dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill || (dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.NotSet && this.AutoSizeColumnsMode == DataGridViewAutoSizeColumnsMode.Fill)))
11337
internal void OnAutoSizeColumnModeChanged(DataGridViewColumn dataGridViewColumn,
DataGridViewAutoSizeColumnMode
previousInheritedMode)
11352
DataGridViewAutoSizeColumnMode
autoSizeColumnMode = dataGridViewColumn.InheritedAutoSizeMode;
11353
Debug.Assert(autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.NotSet);
11355
DataGridViewAutoSizeColumnMode
previousInheritedMode = e.PreviousMode;
11356
bool previousInheritedModeAutoSized = previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.Fill &&
11357
previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.None &&
11358
previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.NotSet;
11360
if (autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.Fill ||
11361
previousInheritedMode ==
DataGridViewAutoSizeColumnMode
.Fill)
11369
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.None)
11371
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.Fill)
11402
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.None && autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.Fill)
11421
DataGridViewAutoSizeColumnMode
[] previousModes = e.PreviousModes;
11435
DataGridViewAutoSizeColumnMode
autoSizeColumnMode = dataGridViewColumn.InheritedAutoSizeMode;
11436
Debug.Assert(autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.NotSet);
11437
DataGridViewAutoSizeColumnMode
previousInheritedMode = previousModes[dataGridViewColumn.Index];
11438
bool previousInheritedModeAutoSized = previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.Fill &&
11439
previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.None &&
11440
previousInheritedMode !=
DataGridViewAutoSizeColumnMode
.NotSet;
11441
if (autoSizeColumnMode ==
DataGridViewAutoSizeColumnMode
.Fill ||
11442
previousInheritedMode ==
DataGridViewAutoSizeColumnMode
.Fill)
11448
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.None)
11450
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.Fill)
11485
DataGridViewAutoSizeColumnMode
autoSizeColumnMode = dataGridViewColumn.InheritedAutoSizeMode;
11486
Debug.Assert(autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.NotSet);
11488
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.None && autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.Fill)
13946
DataGridViewAutoSizeColumnMode
inheritedAutoSizeMode = this.Columns[e.ColumnIndex].InheritedAutoSizeMode;
13947
if (inheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.None || inheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
13977
if (dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
14486
if (dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill && dataGridViewColumn.Width < minimumWidth)
14510
if (e.Column.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
14848
DataGridViewAutoSizeColumnMode
autoSizeColumnMode = dataGridViewColumn.InheritedAutoSizeMode;
14849
Debug.Assert(autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.NotSet);
14850
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.None &&
14851
autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.Fill)
15195
dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.ColumnHeader &&
15202
dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
15207
dataGridViewColumn.AutoSizeMode =
DataGridViewAutoSizeColumnMode
.None;
15219
dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill)
15222
dataGridViewColumn.AutoSizeMode =
DataGridViewAutoSizeColumnMode
.None;
15877
(dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.ColumnHeader || (dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.NotSet && this.AutoSizeColumnsMode == DataGridViewAutoSizeColumnsMode.ColumnHeader)))
15884
(dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill || (dataGridViewColumn.AutoSizeMode ==
DataGridViewAutoSizeColumnMode
.NotSet && this.AutoSizeColumnsMode == DataGridViewAutoSizeColumnsMode.Fill)))
17374
DataGridViewAutoSizeColumnMode
autoSizeColumnMode = dataGridViewColumn.GetInheritedAutoSizeMode(this);
17375
Debug.Assert(autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.NotSet);
17376
if (autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.None &&
17377
autoSizeColumnMode !=
DataGridViewAutoSizeColumnMode
.Fill &&
22460
(dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.None || dataGridViewColumn.InheritedAutoSizeMode ==
DataGridViewAutoSizeColumnMode
.Fill))
System.WorkflowServices (1)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
622
typeColumn.AutoSizeMode =
DataGridViewAutoSizeColumnMode
.Fill;