3 writes to _addNewRow
System.Data.Common (3)
System\Data\DataView.cs (3)
552_addNewRow = _table!.NewRow(); 809_addNewRow = null; 1307_addNewRow = null;
27 references to _addNewRow
System.Data.Common (27)
System\Data\DataRowView.cs (1)
214public bool IsNew => (_row == _dataView._addNewRow);
System\Data\DataView.cs (26)
280private int CountFromIndex => ((null != _index) ? _index.RecordCount : 0) + ((null != _addNewRow) ? 1 : 0); 544if (_addNewRow != null) 546_rowViewCache[_addNewRow].EndEdit(); 549Debug.Assert(null == _addNewRow, "AddNew addNewRow is not null"); 553DataRowView drv = new DataRowView(this, _addNewRow); 554_rowViewCache.Add(_addNewRow, drv); 649if (null != _addNewRow) 651array.SetValue(_rowViewCache[_addNewRow], index); 669if (null != _addNewRow) 671array[index] = _rowViewCache[_addNewRow]; 688if (row == _addNewRow) 784Debug.Assert(null != _addNewRow, "null addNewRow"); 787DataRow newRow = _addNewRow; 804if (newRow == _addNewRow) 807bool flag = _rowViewCache.Remove(_addNewRow); 864if (ReferenceEquals(_addNewRow, rowview.Row)) 1219_addNewRow!.GetDefaultRecord() : 1231if ((index == (count - 1)) && (_addNewRow != null)) 1235return _addNewRow; 1251if (_addNewRow != null && _index!.RecordCount == 0) 1301if (row == _addNewRow) 1304int index = IndexOfDataRowView(_rowViewCache[_addNewRow]); 1321Debug.Assert(row != _addNewRow, "addNewRow being deleted"); 1468if (null != _addNewRow) 1470_rowViewCache.TryGetValue(_addNewRow, out drv); 1472rvc.Add(_addNewRow, drv);