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); 3351&& (_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) 6338Debug.Assert(_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 10629DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 10641MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 10696MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 11176bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 11210AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11270fixedHeight: (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0); 11289if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 11291AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11318if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 11339AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11593bool autoSizeRow = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0; 11598MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 11611MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 12933if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 12935AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 12945if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 12947AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 13548bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 13560AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 13615bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 13619AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 13952AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14091bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14095AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14235bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14242AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14287bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14291AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14382bool autoSizeRows = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0 14383|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0 14416AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 15145fixedRowsHeight: _autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 15153if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None) 15155AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 15165&& (ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.AutoSize || _autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None)) 15177if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None) 15180AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 16930AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 16978if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None && dataGridViewRow.ThicknessInternal != dataGridViewRow.CachedThickness) 17622if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 17628AutoResizeRowInternal(e.RowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 17793DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 17799AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 17830AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 17873|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0) 17874|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0 17901MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 18206bool fixedRowsHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0 18224AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 18299Debug.Assert(_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 18507if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 18509AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 18533if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 18535AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 18617DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 18631AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 18669AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 19572DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 19579AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 19628DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 19635AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 19725if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 19727AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true);