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)
948
get =>
_autoSizeRowsMode
;
971
if (
_autoSizeRowsMode
!= value)
973
DataGridViewAutoSizeModeEventArgs dgvasme = new(
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None);
3344
&& (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.AllHeaders ||
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.DisplayedHeaders))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (75)
371
Debug.Assert(
_autoSizeRowsMode
is DataGridViewAutoSizeRowsMode.DisplayedHeaders
378
&& ((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
).HasFlag(DataGridViewAutoSizeRowsModeInternal.AllColumns))
389
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0);
417
Debug.Assert(
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None);
426
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0
427
&& ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0 || !RowHeadersVisible))
445
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllRows) != 0)
456
if (columnIndex > -1 && (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
466
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0);
493
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0);
2309
if (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
6341
Debug.Assert(
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
10632
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
10644
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
10699
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
11179
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
11213
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
11273
fixedHeight: (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0);
11292
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
11294
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
11321
if (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
11342
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
11596
bool autoSizeRow = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0;
11601
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
11614
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
12936
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
12938
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: false, internalAutosizing: true);
12948
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
12950
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
13551
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
13563
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
13618
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
13622
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
13955
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14094
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14098
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14238
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14245
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14290
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14294
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14385
bool autoSizeRows = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0
14386
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0
14419
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
15148
fixedRowsHeight:
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
15156
if (
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None)
15158
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: false, internalAutosizing: true);
15168
&& (ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.AutoSize ||
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None))
15180
if (
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None)
15183
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
16936
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
16984
if (
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None && dataGridViewRow.ThicknessInternal != dataGridViewRow.CachedThickness)
17628
if (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
17634
AutoResizeRowInternal(e.RowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
17799
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
17805
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
17836
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
17879
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0)
17880
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0
17907
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
18212
bool fixedRowsHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0
18230
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
18305
Debug.Assert(
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
18513
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
18515
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: false, internalAutosizing: true);
18539
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
18541
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
18623
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
18637
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
18675
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
19578
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
19585
AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
19634
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
19641
AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
19731
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
19733
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);