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)
944
get =>
_autoSizeRowsMode
;
967
if (
_autoSizeRowsMode
!= value)
969
DataGridViewAutoSizeModeEventArgs dgvasme = new(
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None);
3352
&& (
_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);
16933
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
16981
if (
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None && dataGridViewRow.ThicknessInternal != dataGridViewRow.CachedThickness)
17625
if (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
17631
AutoResizeRowInternal(e.RowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
17796
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
17802
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
17833
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
17876
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0)
17877
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0
17904
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
18209
bool fixedRowsHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0
18227
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
18302
Debug.Assert(
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
18510
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
18512
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: false, internalAutosizing: true);
18536
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
18538
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
18620
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
18634
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
18672
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
19575
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
19582
AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
19631
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
19638
AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
19728
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
19730
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);