2 writes to _autoSizeRowsMode
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
441_autoSizeRowsMode = DataGridViewAutoSizeRowsMode.None; 974_autoSizeRowsMode = value;
80 references to _autoSizeRowsMode
System.Windows.Forms (80)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (5)
948get => _autoSizeRowsMode; 971if (_autoSizeRowsMode != value) 973DataGridViewAutoSizeModeEventArgs dgvasme = new(_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None); 3344&& (_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); 16936AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 16984if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None && dataGridViewRow.ThicknessInternal != dataGridViewRow.CachedThickness) 17628if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 17634AutoResizeRowInternal(e.RowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 17799DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 17805AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 17836AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 17879|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0) 17880|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0 17907MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 18212bool fixedRowsHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0 18230AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 18305Debug.Assert(_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 18513if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 18515AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 18539if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 18541AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 18623DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 18637AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 18675AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 19578DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 19585AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 19634DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 19641AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 19731if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 19733AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true);