2 writes to _autoSizeRowsMode
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
442_autoSizeRowsMode = DataGridViewAutoSizeRowsMode.None; 975_autoSizeRowsMode = value;
80 references to _autoSizeRowsMode
System.Windows.Forms (80)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (5)
949get => _autoSizeRowsMode; 972if (_autoSizeRowsMode != value) 974DataGridViewAutoSizeModeEventArgs dgvasme = new(_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None); 3356&& (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.AllHeaders || _autoSizeRowsMode == DataGridViewAutoSizeRowsMode.DisplayedHeaders))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (75)
416Debug.Assert(_autoSizeRowsMode is DataGridViewAutoSizeRowsMode.DisplayedHeaders 423&& ((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode).HasFlag(DataGridViewAutoSizeRowsModeInternal.AllColumns)) 434Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0); 462Debug.Assert(_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None); 471if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0 472&& ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0 || !RowHeadersVisible)) 490if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllRows) != 0) 501if (columnIndex > -1 && (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 511Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0); 538Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0); 2354if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 6397Debug.Assert(_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 10688DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 10700MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 10755MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 11235bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 11269AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11329fixedHeight: (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0); 11348if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 11350AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11377if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 11398AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 11652bool autoSizeRow = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0; 11657MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 11670MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 12992if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 12994AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 13004if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 13006AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 13607bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 13619AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 13674bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 13678AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14011AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14150bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14154AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14294bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14301AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14346bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0; 14350AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 14441bool autoSizeRows = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0 14442|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0 14475AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 15204fixedRowsHeight: _autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 15212if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None) 15214AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 15224&& (ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.AutoSize || _autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None)) 15236if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None) 15239AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 16995AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 17043if (_autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None && dataGridViewRow.ThicknessInternal != dataGridViewRow.CachedThickness) 17687if (_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None) 17693AutoResizeRowInternal(e.RowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 17858DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 17864AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 17895AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 17938|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0) 17939|| ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0 17966MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), 18271bool fixedRowsHeight = (((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) == 0 18289AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 18364Debug.Assert(_autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 18572if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 18574AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: false, internalAutosizing: true); 18598if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 18600AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true); 18682DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 18696AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 18734AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: true, internalAutosizing: true); 19637DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 19644AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 19693DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode; 19700AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(_autoSizeRowsMode), fixedWidth: false, internalAutosizing: true); 19790if ((((DataGridViewAutoSizeRowsModeInternal)_autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0) 19792AdjustShrinkingRows(_autoSizeRowsMode, fixedWidth: true, internalAutosizing: true);