69 references to DataGridViewRowHeadersWidthSizeMode
System.Windows.Forms (69)
winforms\Managed\System\WinForms\DataGridView.cs (13)
345
private
DataGridViewRowHeadersWidthSizeMode
rowHeadersWidthSizeMode;
488
this.rowHeadersWidthSizeMode =
DataGridViewRowHeadersWidthSizeMode
.EnableResizing;
4314
if (this.RowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.EnableResizing &&
4315
this.RowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.DisableResizing)
4371
return (this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing || this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.DisableResizing) &&
4382
DefaultValue(
DataGridViewRowHeadersWidthSizeMode
.EnableResizing),
4387
public
DataGridViewRowHeadersWidthSizeMode
RowHeadersWidthSizeMode
4396
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
DataGridViewRowHeadersWidthSizeMode
.EnableResizing, (int)
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToFirstHeader))
4398
throw new InvalidEnumArgumentException("value", (int)value, typeof(
DataGridViewRowHeadersWidthSizeMode
));
4408
DataGridViewAutoSizeModeEventArgs dgvasme = new DataGridViewAutoSizeModeEventArgs(this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.EnableResizing &&
4409
this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.DisableResizing);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (4)
201
return (this.OwningRow.Resizable == DataGridViewTriState.True) || (this.DataGridView != null && this.DataGridView.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing);
212
return this.DataGridView != null && (this.DataGridView.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing || this.DataGridView.ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.EnableResizing);
343
if (this.OwningRow.GetResizable(rowIndex) == DataGridViewTriState.True || (this.DataGridView != null && this.DataGridView.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing))
386
if (this.DataGridView.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing || this.DataGridView.ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.EnableResizing)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (50)
1970
public void AutoResizeRowHeadersWidth(
DataGridViewRowHeadersWidthSizeMode
rowHeadersWidthSizeMode)
1979
protected void AutoResizeRowHeadersWidth(
DataGridViewRowHeadersWidthSizeMode
rowHeadersWidthSizeMode,
1983
if (rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing ||
1984
rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.DisableResizing)
1989
if (rowHeadersWidthSizeMode <
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToAllHeaders || rowHeadersWidthSizeMode >
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToFirstHeader)
1991
throw new InvalidEnumArgumentException("rowHeadersWidthSizeMode", (int)rowHeadersWidthSizeMode, typeof(
DataGridViewRowHeadersWidthSizeMode
));
2027
case
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToFirstHeader:
2043
case
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToDisplayedHeaders:
2084
case
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToAllHeaders:
2124
public void AutoResizeRowHeadersWidth(int rowIndex,
DataGridViewRowHeadersWidthSizeMode
rowHeadersWidthSizeMode)
2134
DataGridViewRowHeadersWidthSizeMode
rowHeadersWidthSizeMode,
2142
if (rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing ||
2143
rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.DisableResizing)
2147
if (rowHeadersWidthSizeMode <
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToAllHeaders || rowHeadersWidthSizeMode >
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToFirstHeader)
2149
throw new InvalidEnumArgumentException("rowHeadersWidthSizeMode", (int)rowHeadersWidthSizeMode, typeof(
DataGridViewRowHeadersWidthSizeMode
));
2156
if (rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToFirstHeader &&
2162
if (rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToDisplayedHeaders &&
2200
case
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToFirstHeader:
2216
case
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToDisplayedHeaders:
2257
case
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToAllHeaders:
9415
if (this.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing)
9513
if (this.RowHeadersVisible && this.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing)
9604
if (this.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing)
9686
if (this.RowHeadersVisible && this.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing)
9709
this.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing)
10836
bool rowHeadersAutoSize = this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.EnableResizing &&
10837
this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.DisableResizing;
13940
AutoResizeRowHeadersWidth(
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToDisplayedHeaders,
14391
bool fixedRowHeadersWidth = this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing ||
14392
this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.DisableResizing;
15651
bool autoSizeRowHeaders = this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.EnableResizing &&
15652
this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.DisableResizing;
16502
Debug.Assert(this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing);
17444
bool fixedRowHeadersWidth = this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing ||
17445
this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.DisableResizing;
18288
bool fixedRowHeadersWidth = this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing ||
18289
this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.DisableResizing;
18358
if (this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToAllHeaders ||
18359
(this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToDisplayedHeaders && rowIndex != -1 && rowDisplayed) ||
18360
(this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.EnableResizing && this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.DisableResizing && rowIndex == -1) ||
18361
(this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.AutoSizeToFirstHeader && rowIndex != -1 && rowIndex == this.Rows.GetFirstRow(DataGridViewElementStates.Visible)))
18679
bool autoSizeRowHeaders = this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.EnableResizing &&
18680
this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.DisableResizing;
18733
if (this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.EnableResizing &&
18734
this.rowHeadersWidthSizeMode !=
DataGridViewRowHeadersWidthSizeMode
.DisableResizing)
19054
bool fixedRowHeadersWidth = this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing ||
19055
this.rowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.DisableResizing;
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1405
this.DataGridView.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.EnableResizing ||
1406
this.DataGridView.RowHeadersWidthSizeMode ==
DataGridViewRowHeadersWidthSizeMode
.DisableResizing)