40 references to AllowUserToAddRowsInternal
System.Windows.Forms (40)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
3175
ArgumentOutOfRangeException.ThrowIfLessThan(value,
AllowUserToAddRowsInternal
? 1 : 0);
3198
Rows.RemoveAt(currentRowCount - (
AllowUserToAddRowsInternal
? 2 : 1));
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (8)
393
if (_dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] != _owner.
AllowUserToAddRowsInternal
)
414
Debug.Assert(_owner.
AllowUserToAddRowsInternal
, "how did we start the add new transaction when the AllowUserToAddRowsInternal is false?");
494
&& CurrencyManager.List.Count == (_owner.
AllowUserToAddRowsInternal
? _owner.Rows.Count - 1 : _owner.Rows.Count))
689
if (_owner.Rows.Count == (_owner.
AllowUserToAddRowsInternal
? 1 : 0))
715
if (_owner.
AllowUserToAddRowsInternal
&& // condition 1.
764
if (_owner.
AllowUserToAddRowsInternal
&& _owner.Rows.Count > 0)
826
Debug.Assert(_owner.
AllowUserToAddRowsInternal
, "how did we start an add new row transaction if the dataGridView control has AllowUserToAddRows == false?");
1015
_dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] = _owner.
AllowUserToAddRowsInternal
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (15)
3259
Debug.Assert((
AllowUserToAddRowsInternal
&& Rows.Count == 1) || (!
AllowUserToAddRowsInternal
&& Rows.Count == 0));
5628
if (
AllowUserToAddRowsInternal
)
10812
&& (includeNewRow || !
AllowUserToAddRowsInternal
|| firstDisplayedCellAddress.Y != Rows.Count - 1))
11009
if (
AllowUserToAddRowsInternal
&& NewRowIndex == -1)
11494
Debug.Assert(!
AllowUserToAddRowsInternal
);
13695
else if (
AllowUserToAddRowsInternal
)
14994
Debug.Assert(
AllowUserToAddRowsInternal
);
17680
if (rowIndexPrevious > -1 &&
AllowUserToAddRowsInternal
)
17972
&&
AllowUserToAddRowsInternal
)
18098
if (!validationFailureOccurred &&
AllowUserToAddRowsInternal
&& NewRowIndex == rowIndex)
18122
if (
AllowUserToAddRowsInternal
)
19516
if (DataSource is not null && _ptCurrentCell.X >= 0 &&
AllowUserToAddRowsInternal
&& NewRowIndex == _ptCurrentCell.Y)
20415
if (
AllowUserToAddRowsInternal
)
25800
if (
AllowUserToAddRowsInternal
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2441
(dataGridView.
AllowUserToAddRowsInternal
&& rowIndex > -1 && rowIndex == dataGridView.NewRowIndex && rowIndex != dataGridView.CurrentCellAddress.Y) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
164
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (12)
226
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
370
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
408
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
485
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
550
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
730
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
832
DataGridView.
AllowUserToAddRowsInternal
&&
1425
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
1470
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
1602
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
1772
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
2170
Debug.Assert(DataGridView.
AllowUserToAddRowsInternal
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.RowComparer.cs (1)
43
Debug.Assert(_dataGridView.
AllowUserToAddRowsInternal
);