40 references to AllowUserToAddRowsInternal
System.Windows.Forms (40)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
3173
ArgumentOutOfRangeException.ThrowIfLessThan(value,
AllowUserToAddRowsInternal
? 1 : 0);
3196
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)
3135
Debug.Assert((
AllowUserToAddRowsInternal
&& Rows.Count == 1) || (!
AllowUserToAddRowsInternal
&& Rows.Count == 0));
5473
if (
AllowUserToAddRowsInternal
)
10391
&& (includeNewRow || !
AllowUserToAddRowsInternal
|| firstDisplayedCellAddress.Y != Rows.Count - 1))
10588
if (
AllowUserToAddRowsInternal
&& NewRowIndex == -1)
11075
Debug.Assert(!
AllowUserToAddRowsInternal
);
13287
else if (
AllowUserToAddRowsInternal
)
14586
Debug.Assert(
AllowUserToAddRowsInternal
);
17264
if (rowIndexPrevious > -1 &&
AllowUserToAddRowsInternal
)
17542
&&
AllowUserToAddRowsInternal
)
17668
if (!validationFailureOccurred &&
AllowUserToAddRowsInternal
&& NewRowIndex == rowIndex)
17692
if (
AllowUserToAddRowsInternal
)
19086
if (DataSource is not null && _ptCurrentCell.X >= 0 &&
AllowUserToAddRowsInternal
&& NewRowIndex == _ptCurrentCell.Y)
19974
if (
AllowUserToAddRowsInternal
)
25332
if (
AllowUserToAddRowsInternal
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2427
|| (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
);