2 writes to autoSizeRowsMode
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridView.cs (2)
485
this.
autoSizeRowsMode
= DataGridViewAutoSizeRowsMode.None;
1209
this.
autoSizeRowsMode
= value;
82 references to autoSizeRowsMode
System.Windows.Forms (82)
winforms\Managed\System\WinForms\DataGridView.cs (5)
1184
return this.
autoSizeRowsMode
;
1206
if (this.
autoSizeRowsMode
!= value)
1208
DataGridViewAutoSizeModeEventArgs dgvasme = new DataGridViewAutoSizeModeEventArgs(this.
autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None);
4272
(this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.AllHeaders || this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.DisplayedHeaders))
winforms\Managed\System\WinForms\DataGridViewMethods.cs (77)
379
Debug.Assert(this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.DisplayedHeaders ||
380
this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders ||
381
this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.DisplayedCells);
387
if (columnIndex > -1 && (((DataGridViewAutoSizeRowsModeInternal)
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
398
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal)
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0);
429
Debug.Assert(this.
autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None);
438
if ((((DataGridViewAutoSizeRowsModeInternal) this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0 ||
439
((((DataGridViewAutoSizeRowsModeInternal) this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0 && this.RowHeadersVisible))
454
if ((((DataGridViewAutoSizeRowsModeInternal) this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllRows) != 0)
465
if (columnIndex > -1 && (((DataGridViewAutoSizeRowsModeInternal) this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
476
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal) this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0);
507
Debug.Assert((((DataGridViewAutoSizeRowsModeInternal) this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0);
2329
if (this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
6368
Debug.Assert(this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
10805
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
;
10815
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), false /*fixedWidth*/, true /*internalAutosizing*/);
10860
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), true /*fixedWidth*/, true /*internalAutosizing*/);
11367
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
11395
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
11459
(((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0 /*fixedHeight*/);
11474
if ((((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
11476
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
11507
if (this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
11527
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
11820
bool autoSizeRow = (((DataGridViewAutoSizeRowsModeInternal) this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0;
11823
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), !autoSizeColumn /*fixedWidth*/, true /*internalAutosizing*/);
11831
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), true /*fixedWidth*/, true /*internalAutosizing*/);
13306
if ((((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
13308
AdjustShrinkingRows(this.
autoSizeRowsMode
, false /*fixedWidth*/, true /*internalAutosizing*/);
13316
if ((((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
13318
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
14017
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14029
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
14088
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14092
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
14411
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
14554
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14558
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
14707
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14714
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
14756
bool fixedHeight = (((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) == 0;
14760
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
14844
bool autoSizeRows = (((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0 ||
14845
((((DataGridViewAutoSizeRowsModeInternal) this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) != 0 &&
14877
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
15657
this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None /*fixedRowsHeight*/);
15663
if (this.
autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None)
15665
AdjustShrinkingRows(this.
autoSizeRowsMode
, false /*fixedWidth*/, true /*internalAutosizing*/);
15670
(this.ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.AutoSize || this.
autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None))
15680
if (this.
autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None)
15683
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
17384
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
17431
if (this.
autoSizeRowsMode
!= DataGridViewAutoSizeRowsMode.None && dataGridViewRow.ThicknessInternal != dataGridViewRow.CachedThickness)
18083
if (this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None)
18089
AutoResizeRowInternal(e.RowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), true /*fixedWidth*/, true /*internalAutosizing*/);
18270
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
;
18276
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), false /*fixedWidth*/, true /*internalAutosizing*/);
18305
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), true /*fixedWidth*/, true /*internalAutosizing*/);
18354
((((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0) ||
18355
((((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0 && rowIndex != -1 && !rowDisplayed);
18375
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), true /*fixedWidth*/, true /*internalAutosizing*/);
18677
bool fixedRowsHeight = (((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.Header) == 0 ||
18694
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
18796
Debug.Assert(this.
autoSizeRowsMode
== DataGridViewAutoSizeRowsMode.None);
19044
if ((((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
19046
AdjustShrinkingRows(this.
autoSizeRowsMode
, false /*fixedWidth*/, true /*internalAutosizing*/);
19069
if ((((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
19071
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);
19150
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
;
19164
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), false /*fixedWidth*/, true /*internalAutosizing*/);
19200
AutoResizeRowInternal(rowIndex, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), true /*fixedWidth*/, true /*internalAutosizing*/);
20127
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
;
20134
AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), false /*fixedWidth*/, true /*internalAutosizing*/);
20179
DataGridViewAutoSizeRowsModeInternal autoSizeRowsModeInternal = (DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
;
20186
AutoResizeRowInternal(indexTmp, MapAutoSizeRowsModeToRowMode(this.
autoSizeRowsMode
), false /*fixedWidth*/, true /*internalAutosizing*/);
20270
if ((((DataGridViewAutoSizeRowsModeInternal)this.
autoSizeRowsMode
) & DataGridViewAutoSizeRowsModeInternal.AllColumns) != 0)
20272
AdjustShrinkingRows(this.
autoSizeRowsMode
, true /*fixedWidth*/, true /*internalAutosizing*/);