2 writes to _autoSizeRowsMode
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
437_autoSizeRowsMode = DataGridViewAutoSizeRowsMode.None; 970_autoSizeRowsMode = value;
80 references to _autoSizeRowsMode
System.Windows.Forms (80)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (5)
944get => _autoSizeRowsMode; 967if (_autoSizeRowsMode != value) 969DataGridViewAutoSizeModeEventArgs dgvasme = new(_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None); 3352&& (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.AllHeaders || _autoSizeRowsMode == DataGridViewAutoSizeRowsMode.DisplayedHeaders))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (75)
371Debug.Assert(_autoSizeRowsMode is DataGridViewAutoSizeRowsMode.DisplayedHeaders 378&& ((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode).HasFlag(DataGridViewAutoSizeRowsModeInternal.AllColumns)) 389Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0); 417Debug.Assert(_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None); 426if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0 427&& ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0 || !RowHeadersVisible)) 445if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllRows) != 0) 456if (columnIndex > -1 && (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 466Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0); 493Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0); 2309if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 6341Debug.Assert(_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 10632DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 10644MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 10699MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 11179bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 11213AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11273fixedHeight: (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0); 11292if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 11294AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11321if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 11342AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11596bool autoSizeRow = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0; 11601MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 11614MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 12936if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 12938AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 12948if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 12950AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 13551bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 13563AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 13618bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 13622AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 13955AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14094bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14098AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14238bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14245AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14290bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14294AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14385bool autoSizeRows = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0 14386|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0 14419AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 15148fixedRowsHeight: _autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 15156if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None) 15158AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 15168&& (ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.AutoSize || _autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None)) 15180if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None) 15183AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 16933AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 16981if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None && dataGridViewRow.ThicknessInternal != dataGridViewRow.CachedThickness) 17625if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 17631AutoResizeRowInternal(e.RowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 17796DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 17802AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 17833AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 17876|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0) 17877|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0 17904MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 18209bool fixedRowsHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0 18227AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 18302Debug.Assert(_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 18510if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 18512AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 18536if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 18538AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 18620DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 18634AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 18672AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 19575DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 19582AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 19631DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 19638AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 19728if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 19730AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true);