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