43 references to NewRowIndex
System.Windows.Forms (43)
winforms\Managed\System\WinForms\DataGridViewBand.cs (2)
869this.DataGridView.NewRowIndex != -1 && 870this.DataGridView.NewRowIndex == this.bandIndex &&
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
461this.DataGridView.NewRowIndex != rowIndex &&
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
1854rowIndex != this.DataGridView.NewRowIndex && 2681(dataGridView.AllowUserToAddRowsInternal && rowIndex > -1 && rowIndex == dataGridView.NewRowIndex && rowIndex != dataGridView.CurrentCellAddress.Y) ||
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (6)
685if (this.owner.NewRowIndex == -1 || e.NewIndex != this.owner.Rows.Count) 803this.currencyManager.Position == this.owner.NewRowIndex && // condition 4. 804this.owner.CurrentCellAddress.Y != this.owner.NewRowIndex && // condition 5. 852Debug.Assert(this.owner.NewRowIndex != -1, "the NewRowIndex is -1 only when AllowUserToAddRows is false"); 856if (this.owner.CurrentCellAddress.Y != this.owner.NewRowIndex || this.owner.IsCurrentRowDirty) 1454if (e.RowIndex != this.owner.NewRowIndex &&
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
234this.DataGridView.NewRowIndex == this.RowIndex &&
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
767this.DataGridView.NewRowIndex != rowIndex &&
winforms\Managed\System\WinForms\DataGridViewRow.cs (4)
117this.Index != this.DataGridView.NewRowIndex) 329return this.DataGridView != null && this.DataGridView.NewRowIndex == this.Index; 1349rowIndex != this.DataGridView.NewRowIndex) 2130if (this.owner.DataGridView.AllowUserToAddRows && this.owner.Index == this.owner.DataGridView.NewRowIndex)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (20)
372if (this.DataGridView.NewRowIndex != -1) 375Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 534if (this.DataGridView.NewRowIndex != -1) 537Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 572if (this.DataGridView.NewRowIndex != -1) 575Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 643if (this.DataGridView.NewRowIndex != -1) 646Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 707if (this.DataGridView.NewRowIndex != -1) 710Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 875if (this.DataGridView.NewRowIndex != -1) 878Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 1551if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.Count) 1598if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.Count) 1630Debug.Assert(this.DataGridView.NewRowIndex == -1 || rowIndex != this.Count); 1728if (this.DataGridView.NewRowIndex != -1 && indexDestination == this.Count) 1898if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.Count) 2295if (this.DataGridView.NewRowIndex == index) 2802if (this.dataGridView.NewRowIndex != -1) 2805if (rowIndex == this.dataGridView.NewRowIndex)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (6)
913else if (this.DataGridView.NewRowIndex == rowIndex) 928else if (this.DataGridView.NewRowIndex == rowIndex) 938else if (this.DataGridView.NewRowIndex == rowIndex) 1059else if (this.DataGridView.NewRowIndex == rowIndex) 1074else if (this.DataGridView.NewRowIndex == rowIndex) 1084else if (this.DataGridView.NewRowIndex == rowIndex)