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