39 references to AllowUserToAddRowsInternal
System.Windows.Forms (39)
winforms\Managed\System\WinForms\DataGridView.cs (2)
4046
if (this.
AllowUserToAddRowsInternal
)
4077
this.Rows.RemoveAt(currentRowCount - (this.
AllowUserToAddRowsInternal
? 2 : 1));
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
2681
(dataGridView.
AllowUserToAddRowsInternal
&& rowIndex > -1 && rowIndex == dataGridView.NewRowIndex && rowIndex != dataGridView.CurrentCellAddress.Y) ||
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (8)
496
if (this.dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] != this.owner.
AllowUserToAddRowsInternal
)
516
Debug.Assert(this.owner.
AllowUserToAddRowsInternal
, "how did we start the add new transaction when the AllowUserToAddRowsInternal is false?");
590
this.currencyManager.List.Count == (this.owner.
AllowUserToAddRowsInternal
? this.owner.Rows.Count - 1 : this.owner.Rows.Count))
773
if (this.owner.Rows.Count == (owner.
AllowUserToAddRowsInternal
? 1 : 0))
799
if (this.owner.
AllowUserToAddRowsInternal
&& // condition 1.
850
if (this.owner.
AllowUserToAddRowsInternal
&& this.owner.Rows.Count > 0)
913
Debug.Assert(this.owner.
AllowUserToAddRowsInternal
, "how did we start an add new row transaction if the dataGridView control has AllowUserToAddRows == false?");
1106
this.dataConnectionState[DATACONNECTIONSTATE_cachedAllowUserToAddRowsInternal] = this.owner.
AllowUserToAddRowsInternal
;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
237
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (14)
3165
Debug.Assert((this.
AllowUserToAddRowsInternal
&& this.Rows.Count == 1) ||
3166
(!this.
AllowUserToAddRowsInternal
&& this.Rows.Count == 0));
5484
if (this.
AllowUserToAddRowsInternal
)
10571
!this.
AllowUserToAddRowsInternal
||
10761
if (this.
AllowUserToAddRowsInternal
&& this.newRowIndex == -1)
11216
Debug.Assert(!this.
AllowUserToAddRowsInternal
);
13745
else if (this.
AllowUserToAddRowsInternal
)
15047
Debug.Assert(this.
AllowUserToAddRowsInternal
);
17703
if (rowIndexPrevious > -1 && this.
AllowUserToAddRowsInternal
)
17970
this.
AllowUserToAddRowsInternal
)
18124
if (!validationFailureOccurred && this.
AllowUserToAddRowsInternal
&& this.newRowIndex == rowIndex)
18147
if (this.
AllowUserToAddRowsInternal
)
19645
this.
AllowUserToAddRowsInternal
&&
25493
if (this.
AllowUserToAddRowsInternal
)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (13)
374
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
536
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
574
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
645
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
709
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
877
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
978
this.DataGridView.
AllowUserToAddRowsInternal
&&
1554
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
1601
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
1731
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
1901
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
2297
Debug.Assert(this.DataGridView.
AllowUserToAddRowsInternal
);
2804
Debug.Assert(this.dataGridView.
AllowUserToAddRowsInternal
);