9 writes to newRowIndex
System.Windows.Forms (9)
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (1)
541
this.owner.
newRowIndex
= -1;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (8)
86
this.
newRowIndex
= this.Rows.Count - 1;
5364
this.
newRowIndex
= -1; // No more 'new' row.
5368
this.
newRowIndex
--;
5390
this.
newRowIndex
+= insertionCount;
5486
this.
newRowIndex
= this.Rows.Count - 1;
10766
this.
newRowIndex
= rowIndex;
13682
this.
newRowIndex
= -1;
15050
this.
newRowIndex
= -1;
53 references to newRowIndex
System.Windows.Forms (53)
winforms\Managed\System\WinForms\DataGridView.cs (1)
3826
return this.
newRowIndex
;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (5)
514
if (!this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew] && this.owner.
newRowIndex
== e.NewIndex)
915
if (this.owner.
newRowIndex
== this.currencyManager.List.Count)
918
deleteAddNewRow = (rowIndex == this.owner.
newRowIndex
- 1);
923
Debug.Assert(this.owner.
newRowIndex
== this.currencyManager.List.Count - 1);
924
deleteAddNewRow = (rowIndex == this.owner.
newRowIndex
);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (47)
83
Debug.Assert(this.
newRowIndex
== -1);
91
DataGridViewRowEventArgs dgvre = new DataGridViewRowEventArgs(this.Rows[this.
newRowIndex
]);
3298
if (discardNewRow && this.ptCurrentCell.Y == this.
newRowIndex
- 1)
3307
this.ptCurrentCell.Y == this.
newRowIndex
- 1 &&
5362
if (this.
newRowIndex
== rowIndexDeleted)
5366
else if (this.
newRowIndex
!= -1)
5388
if (this.
newRowIndex
!= -1)
5465
Debug.Assert(this.
newRowIndex
!= -1);
5467
DataGridViewRowCancelEventArgs dgvrce = new DataGridViewRowCancelEventArgs(this.Rows[this.
newRowIndex
]);
5475
Debug.Assert(this.
newRowIndex
== this.Rows.Count - 1);
5476
DataGridViewRow dataGridViewRow = this.Rows[this.
newRowIndex
];
5477
this.Rows.RemoveAtInternal(this.
newRowIndex
, false /*force*/);
5482
Debug.Assert(this.
newRowIndex
== -1);
5487
Debug.Assert((this.Rows.GetRowState(this.
newRowIndex
) & DataGridViewElementStates.Visible) != 0);
5488
Debug.Assert(this.ptCurrentCell.Y == this.
newRowIndex
);
5490
OnDefaultValuesNeeded(new DataGridViewRowEventArgs(this.Rows[this.
newRowIndex
]));
5491
InvalidateRowPrivate(this.
newRowIndex
);
10761
if (this.AllowUserToAddRowsInternal && this.
newRowIndex
== -1)
10950
if (dataGridViewColumn.CellTemplate.DefaultNewRowValue != null && this.
newRowIndex
!= -1)
10953
DataGridViewRow newRow = this.Rows[this.
newRowIndex
];
10967
if (rowIndex == this.
newRowIndex
)
11085
if (dataGridViewColumn.CellTemplate.DefaultNewRowValue != null && this.
newRowIndex
!= -1)
11088
DataGridViewRow newRow = this.Rows[this.
newRowIndex
];
11109
if (rowIndex == this.
newRowIndex
)
15044
if (this.IsCurrentCellDirty && this.
newRowIndex
== this.ptCurrentCell.Y)
15046
Debug.Assert(this.
newRowIndex
!= -1);
15914
if (dataGridViewColumn.CellTemplate.DefaultNewRowValue != null && this.
newRowIndex
!= -1)
15917
DataGridViewRow newRow = this.Rows[this.
newRowIndex
];
15931
if (rowIndex == this.
newRowIndex
)
17705
Debug.Assert(this.
newRowIndex
!= -1);
17706
Debug.Assert(this.
newRowIndex
== this.Rows.Count-1);
18124
if (!validationFailureOccurred && this.AllowUserToAddRowsInternal && this.
newRowIndex
== rowIndex)
18130
DataGridViewRowEventArgs dgvre = new DataGridViewRowEventArgs(this.Rows[this.
newRowIndex
]);
18150
InvalidateRowPrivate(this.
newRowIndex
);
19302
if (rowIndex == this.
newRowIndex
)
19646
this.
newRowIndex
== this.ptCurrentCell.Y)
20316
if (this.
newRowIndex
!= -1)
20318
DataGridViewRow newRow = this.Rows.SharedRow(this.
newRowIndex
);
20324
newRow = this.Rows[this.
newRowIndex
]; // unshare the 'new row'.
20331
dataGridViewCell.SetValueInternal(this.
newRowIndex
, dataGridViewCell.DefaultNewRowValue);
20482
if (rowIndex == this.
newRowIndex
|| rowIndex >= this.Rows.Count)
25495
if (this.Columns.Count > 0 && this.
newRowIndex
== -1)
25500
else if (this.
newRowIndex
!= -1)
25503
Debug.Assert(this.
newRowIndex
== this.Rows.Count - 1);
25504
this.Rows.RemoveAtInternal(this.
newRowIndex
, false /*force*/);
28345
Debug.Assert(rowIndex1 != this.
newRowIndex
);
28346
Debug.Assert(rowIndex2 != this.
newRowIndex
);