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);
3346
&& (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.AllHeaders ||
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.DisplayedHeaders))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (75)
391
Debug.Assert(
_autoSizeRowsMode
is DataGridViewAutoSizeRowsMode.DisplayedHeaders
397
if (columnIndex > -1 && (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
408
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0);
442
Debug.Assert(
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None);
451
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0
452
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0 && RowHeadersVisible))
467
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllRows) != 0)
478
if (columnIndex > -1 && (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
488
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0);
521
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0);
2411
if (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
6517
Debug.Assert(
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
11053
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
11065
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
11120
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
11598
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
11632
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
11692
fixedHeight: (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0);
11711
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
11713
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
11740
if (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
11761
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
12014
bool autoSizeRow = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0;
12019
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
12032
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
13344
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
13346
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: false, internalAutosizing: true);
13356
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
13358
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
13959
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
13971
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14026
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14030
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14363
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14502
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14506
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14646
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14653
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14698
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14702
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
14793
bool autoSizeRows = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0
14794
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0
14827
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
15555
fixedRowsHeight:
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
15563
if (
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None)
15565
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: false, internalAutosizing: true);
15575
&& (ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.AutoSize ||
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None))
15587
if (
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None)
15590
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
17339
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
17387
if (
_autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None && dataGridViewRow.ThicknessInternal != dataGridViewRow.CachedThickness)
18058
if (
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
18064
AutoResizeRowInternal(e.RowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
18229
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
18235
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
18266
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
18309
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0)
18310
|| ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0
18337
MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
),
18642
bool fixedRowsHeight = (((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0
18660
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
18735
Debug.Assert(
_autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
18943
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
18945
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: false, internalAutosizing: true);
18969
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
18971
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);
19053
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
19067
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
19105
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: true, internalAutosizing: true);
20019
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
20026
AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
20075
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
;
20082
AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(
_autoSizeRowsMode
), fixedWidth: false, internalAutosizing: true);
20172
if ((((DataGridViewAutoSizeRowsModeInternal)
_autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
20174
AdjustShrinkingRows(
_autoSizeRowsMode
, fixedWidth: true, internalAutosizing: true);