40 references to AllowUserToAddRowsInternal
System.Windows.Forms (40)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
3175ArgumentOutOfRangeException.ThrowIfLessThan(value, AllowUserToAddRowsInternal ? 1 : 0); 3198Rows.RemoveAt(currentRowCount - (AllowUserToAddRowsInternal ? 2 : 1));
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (8)
393if (_dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] != _owner.AllowUserToAddRowsInternal) 414Debug.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)) 689if (_owner.Rows.Count == (_owner.AllowUserToAddRowsInternal ? 1 : 0)) 715if (_owner.AllowUserToAddRowsInternal && // condition 1. 764if (_owner.AllowUserToAddRowsInternal && _owner.Rows.Count > 0) 826Debug.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)
3259Debug.Assert((AllowUserToAddRowsInternal && Rows.Count == 1) || (!AllowUserToAddRowsInternal && Rows.Count == 0)); 5628if (AllowUserToAddRowsInternal) 10812&& (includeNewRow || !AllowUserToAddRowsInternal || firstDisplayedCellAddress.Y != Rows.Count - 1)) 11009if (AllowUserToAddRowsInternal && NewRowIndex == -1) 11494Debug.Assert(!AllowUserToAddRowsInternal); 13695else if (AllowUserToAddRowsInternal) 14994Debug.Assert(AllowUserToAddRowsInternal); 17680if (rowIndexPrevious > -1 && AllowUserToAddRowsInternal) 17972&& AllowUserToAddRowsInternal) 18098if (!validationFailureOccurred && AllowUserToAddRowsInternal && NewRowIndex == rowIndex) 18122if (AllowUserToAddRowsInternal) 19516if (DataSource is not null && _ptCurrentCell.X >= 0 && AllowUserToAddRowsInternal && NewRowIndex == _ptCurrentCell.Y) 20415if (AllowUserToAddRowsInternal) 25800if (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)
164Debug.Assert(DataGridView.AllowUserToAddRowsInternal);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (12)
226Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 370Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 408Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 485Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 550Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 730Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 832DataGridView.AllowUserToAddRowsInternal && 1425Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 1470Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 1602Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 1772Debug.Assert(DataGridView.AllowUserToAddRowsInternal); 2170Debug.Assert(DataGridView.AllowUserToAddRowsInternal);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.RowComparer.cs (1)
43Debug.Assert(_dataGridView.AllowUserToAddRowsInternal);