274 references to Count
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
496
if ((e != null) && (e.RowIndex > 0) && (e.RowIndex < Rows.
Count
) &&
620
for (int rowIndex = _firstNonOwnerRow; rowIndex < Rows.
Count
; rowIndex++)
System.Windows.Forms (258)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (14)
1708
Debug.Assert(_ptCurrentCell.Y < Rows.
Count
);
1776
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y < Rows.
Count
);
1849
Debug.Assert(_ptCurrentCell.Y < Rows.
Count
);
2302
&& firstDisplayedCell.RowIndex < Rows.
Count
2525
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, Rows.
Count
);
3096
int rowCount = Rows.
Count
;
3116
int rowCount = Rows.
Count
;
3172
get => Rows.
Count
;
3182
if (value == Rows.
Count
)
3192
else if (value < Rows.
Count
)
3195
while (value < Rows.
Count
)
3197
int currentRowCount = Rows.
Count
;
3199
if (Rows.
Count
>= currentRowCount)
3216
int rowsToAdd = value - Rows.
Count
;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (10)
339
int dataGridViewRowsCount = _owner.Rows.
Count
;
494
&& CurrencyManager.List.Count == (_owner.AllowUserToAddRowsInternal ? _owner.Rows.
Count
- 1 : _owner.Rows.
Count
))
596
if (_owner.NewRowIndex == -1 || e.NewIndex != _owner.Rows.
Count
)
663
if (_owner.Rows.
Count
> 0
689
if (_owner.Rows.
Count
== (_owner.AllowUserToAddRowsInternal ? 1 : 0))
763
int result = _owner.Rows.
Count
;
764
if (_owner.AllowUserToAddRowsInternal && _owner.Rows.
Count
> 0)
1244
else if (rowIndex < _owner.Rows.
Count
)
1269
&& rowIndex < _owner.Rows.
Count
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (135)
28
if (cellAddress.Y < 0 || cellAddress.Y >= Rows.
Count
)
75
NewRowIndex = Rows.
Count
- 1;
325
Debug.Assert(rowIndex < Rows.
Count
);
390
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
1414
if (Columns.Count == 0 && Rows.
Count
== 0)
1432
allCellsSelected = _individualSelectedCells.Count == Columns.Count * Rows.
Count
;
1466
allCellsSelected = _selectedBandIndexes.Count * Rows.
Count
+ _individualSelectedCells.Count == Columns.Count * Rows.
Count
;
1502
allCellsSelected = _selectedBandIndexes.Count * Columns.Count + _individualSelectedCells.Count == Columns.Count * Rows.
Count
;
2006
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
2206
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
2378
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
2692
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y < Rows.
Count
);
3259
Debug.Assert((AllowUserToAddRowsInternal && Rows.
Count
== 1) || (!AllowUserToAddRowsInternal && Rows.
Count
== 0));
3261
if (Rows.
Count
> 0)
3611
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException, Rows.
Count
);
3620
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException, Rows.
Count
);
4277
if (rowIndex >= Rows.
Count
)
4400
int indexTmp = Rows.
Count
;
4905
int nRows = Rows.
Count
;
5378
Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <= Rows.
Count
);
5506
int rowsCount = Rows.
Count
;
5532
int rowsCount = Rows.
Count
;
5607
Debug.Assert(Rows.
Count
> 1);
5618
Debug.Assert(NewRowIndex == Rows.
Count
- 1);
5630
NewRowIndex = Rows.
Count
- 1;
5974
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5985
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5999
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
6046
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
6054
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
6062
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
6070
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
6078
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
6570
Debug.Assert(rowIndex < Rows.
Count
);
6723
&& rowIndexTmp < Rows.
Count
6795
for (rowIndexTmp = 0; rowIndexTmp < Rows.
Count
; rowIndexTmp++)
7056
return cellCount + _selectedBandIndexes.Count * Rows.
Count
;
7093
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
7131
return Rows.
Count
* Columns.Count;
7140
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
7256
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
7310
Debug.Assert(rowIndex >= -1 && rowIndex < Rows.
Count
);
9325
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
9332
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
9505
Debug.Assert(index >= 0 && index < Rows.
Count
);
10199
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
10266
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
10273
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
10302
Debug.Assert(lo < Rows.
Count
);
10303
Debug.Assert(hi < Rows.
Count
);
10458
return columnIndex >= Columns.Count || rowIndex >= Rows.
Count
|| columnIndex == -1 || rowIndex == -1;
10463
return rowIndex >= Rows.
Count
|| rowIndex == -1;
10812
&& (includeNewRow || !AllowUserToAddRowsInternal || firstDisplayedCellAddress.Y != Rows.
Count
- 1))
11013
Debug.Assert(rowIndex == Rows.
Count
- 1);
11209
if (Rows.
Count
> 0)
11227
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
11249
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
11289
if (Rows.
Count
> 0 && dataGridViewColumn.CellType is null)
11356
if (Rows.
Count
> 0)
11378
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
11399
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
11426
CorrectRowFrozenState(dataGridViewRow, rowState, Rows.
Count
);
11495
CorrectRowFrozenStates(dataGridViewRows, rowIndexInserted: Rows.
Count
);
11931
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(e.RowIndex, Rows.
Count
, "e.RowIndex");
12150
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
12238
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
12518
if (hti._row >= Rows.
Count
)
13467
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
13513
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
13688
if (Columns.Count != 0 && Rows.
Count
== 0)
15830
if (Rows.
Count
> 0)
15848
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
15869
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
16303
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
16324
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
16335
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
16392
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
16442
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
16454
if (rowIndex < Rows.
Count
)
16566
&& _ptMouseEnteredCell.Y >= -1 && _ptMouseEnteredCell.Y < Rows.
Count
)
16788
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
17532
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
17659
Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted < Rows.
Count
);
17661
if (rowIndexDeleted >= 0 && rowIndexDeleted < Rows.
Count
)
17683
Debug.Assert(NewRowIndex == Rows.
Count
- 1);
17684
if (rowIndexNext > -1 && rowIndexNext < Rows.
Count
- 1)
17971
&& Rows.
Count
== 0
18050
if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex < Rows.
Count
)
18095
if (rowIndex < Rows.
Count
&& columnIndex < Columns.Count)
18136
if (calledAddNewOnTheDataConnection && rowIndex > Rows.
Count
- 1)
18139
rowIndex = Math.Min(rowIndex, Rows.
Count
- 1);
18161
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
18444
if (hti._row >= Rows.
Count
)
18756
if (rowIndex < Rows.
Count
&& columnIndex < Columns.Count)
18768
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
19168
if (dataGridViewCell is not null && rowIndex < Rows.
Count
&& columnIndex < Columns.Count)
19215
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
19943
if (Columns.Count > 0 || Rows.
Count
> 0)
20396
if (rowIndex == NewRowIndex || rowIndex >= Rows.
Count
)
20409
int dataGridRowsCount = Rows.
Count
;
20411
int dataGridViewRowsCount = Rows.
Count
; // the number of rows in the dataGridView row collection not counting the AddNewRow
20459
if (dataGridRowsCount != Rows.
Count
)
25810
Debug.Assert(NewRowIndex == Rows.
Count
- 1);
26437
Debug.Assert(rowIndex < Rows.
Count
);
26684
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
26685
Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow < Rows.
Count
);
26744
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
27036
int rowIndex = 0, maxRowIndex = Rows.
Count
;
27057
int rowIndex = 0, maxRowIndex = Rows.
Count
;
27141
if (index >= Rows.
Count
)
27143
index -= Rows.
Count
;
27228
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
27264
Debug.Assert(rowIndex >= 0 && columnIndex < Columns.Count && rowIndex < Rows.
Count
);
27392
if (rowIndex >= Rows.
Count
)
27431
if (oldCurrentCellX < Columns.Count && oldCurrentCellY < Rows.
Count
)
27436
if (oldCurrentCellY != _ptCurrentCell.Y && RowHeadersVisible && oldCurrentCellY < Rows.
Count
)
27594
if (oldCurrentCellX < Columns.Count && oldCurrentCellY < Rows.
Count
)
27599
if (RowHeadersVisible && oldCurrentCellY < Rows.
Count
)
27950
Debug.Assert(columnIndex >= 0 && rowIndex >= 0 && columnIndex < Columns.Count && rowIndex < Rows.
Count
);
27986
for (int row = rowIndex + 1; row < Rows.
Count
; row++)
28059
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
28100
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
28130
if (Rows.
Count
> BulkPaintThreshold)
28149
for (int row = rowIndex + 1; row < Rows.
Count
; row++)
28546
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
29342
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
29356
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
29411
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
29422
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexStart, Rows.
Count
);
29425
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexEnd, Rows.
Count
);
29455
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
29657
&& _ptMouseEnteredCell.Y < Rows.
Count
)
29684
&& _ptMouseEnteredCell.Y < Rows.
Count
)
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
208
return _ownerDataGridView.Rows.
Count
== 0 ? null : Parent.GetChild(1);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
493
rowIndex < DataGridView.Rows.
Count
)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (3)
83
int rowCount = dataGridViewRows.
Count
;
126
int rowCount = dataGridViewRows.
Count
;
171
int rowCount = dataGridViewRows.
Count
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
325
if (i < 0 || i >= DataGridView.Rows.
Count
- 1)
1320
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1742
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1812
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1892
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
2430
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, dataGridView.Rows.
Count
);
3057
if (e.ColumnIndex < DataGridView.Columns.Count && e.RowIndex < DataGridView.Rows.
Count
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellPaintingEventArgs.cs (3)
80
if (RowIndex < -1 || RowIndex >= _dataGridView.Rows.
Count
)
109
if (RowIndex < -1 || RowIndex >= _dataGridView.Rows.
Count
)
144
if (RowIndex < -1 || RowIndex >= _dataGridView.Rows.
Count
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
834
rowIndex < DataGridView.Rows.
Count
)
972
Debug.Assert((rowIndex >= 0) && (rowIndex < DataGridView.Rows.
Count
));
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (5)
87
int rowCount = dataGridViewRows.
Count
;
130
int rowCount = dataGridViewRows.
Count
;
174
int rowCount = dataGridViewRows.
Count
;
214
int rowCount = dataGridViewRows.
Count
;
268
int rowCount = dataGridViewRows.
Count
;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (11)
53
int rowCount = dataGridViewRows.
Count
;
119
int rowCount = dataGridViewRows.
Count
;
165
int rowCount = dataGridViewRows.
Count
;
208
int rowCount = dataGridViewRows.
Count
;
252
int rowCount = dataGridViewRows.
Count
;
296
int rowCount = dataGridViewRows.
Count
;
337
int rowCount = dataGridViewRows.
Count
;
400
int rowCount = dataGridViewRows.
Count
;
443
int rowCount = dataGridViewRows.
Count
;
484
int rowCount = dataGridViewRows.
Count
;
526
int rowCount = dataGridViewRows.
Count
;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
248
(DataGridView is not null && (rowIndex < 0 || rowIndex >= DataGridView.Rows.
Count
)))
377
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
94
int rowCount = dataGridViewRows.
Count
;
168
int rowCount = dataGridViewRows.
Count
;
208
int rowCount = dataGridViewRows.
Count
;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
785
rowIndex < DataGridView.Rows.
Count
)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (7)
52
int rowCount = dataGridViewRows.
Count
;
121
int rowCount = dataGridViewRows.
Count
;
163
int rowCount = dataGridViewRows.
Count
;
213
int rowCount = dataGridViewRows.
Count
;
258
int rowCount = dataGridViewRows.
Count
;
301
int rowCount = dataGridViewRows.
Count
;
343
int rowCount = dataGridViewRows.
Count
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (4)
1217
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1244
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1293
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1374
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (32)
71
int ICollection.Count =>
Count
;
100
int rowCount =
Count
;
227
Debug.Assert(DataGridView.NewRowIndex ==
Count
- 1);
228
int insertionIndex =
Count
- 1;
371
Debug.Assert(DataGridView.NewRowIndex ==
Count
- 1);
372
int insertionIndex =
Count
- 1;
409
Debug.Assert(DataGridView.NewRowIndex ==
Count
- 1);
410
int insertionIndex =
Count
- 1;
486
Debug.Assert(DataGridView.NewRowIndex ==
Count
- 1);
488
int insertionIndex =
Count
- 1;
493
if (indexSource < 0 || indexSource >=
Count
)
551
Debug.Assert(DataGridView.NewRowIndex ==
Count
- 1);
552
int insertionIndex =
Count
- 1;
566
if (indexSource < 0 ||
Count
<= indexSource)
731
Debug.Assert(DataGridView.NewRowIndex ==
Count
- 1);
732
InsertRange(
Count
- 1, dataGridViewRows);
861
for (int i = 0; i <
Count
; i++)
1206
for (int i = 0; i <
Count
; i++)
1397
if (rowIndex < 0 ||
Count
< rowIndex)
1422
if (DataGridView.NewRowIndex != -1 && rowIndex ==
Count
)
1455
if (rowIndex < 0 ||
Count
< rowIndex)
1467
if (DataGridView.NewRowIndex != -1 && rowIndex ==
Count
)
1495
Debug.Assert(rowIndex >= 0 && rowIndex <=
Count
);
1499
Debug.Assert(DataGridView.NewRowIndex == -1 || rowIndex !=
Count
);
1584
if (indexSource < 0 ||
Count
<= indexSource)
1589
if (indexDestination < 0 ||
Count
< indexDestination)
1599
if (DataGridView.NewRowIndex != -1 && indexDestination ==
Count
)
1759
if (rowIndex < 0 || rowIndex >
Count
)
1769
if (DataGridView.NewRowIndex != -1 && rowIndex ==
Count
)
2163
if (index < 0 || index >=
Count
)
2211
Debug.Assert(index >= 0 && index <
Count
);
2260
Debug.Assert(index <
Count
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.UnsharingRowEnumerator.cs (3)
29
if (_current < _owner.
Count
- 1)
36
_current = _owner.
Count
;
61
if (_current == _owner.
Count
)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
100
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
297
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
567
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPostPaintEventArgs.cs (5)
64
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
81
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
99
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
123
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
152
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPrePaintEventArgs.cs (5)
81
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
98
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
116
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
140
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
169
if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.
Count
)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
64
int rowCount = dataGridViewRows.
Count
;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewRowCollectionCodeDomSerializer.cs (2)
32
if (rowCollection.
Count
> 0)
34
Debug.Assert(rowCollection.
Count
== 1, " we should have only the add new row");
System.Windows.Forms.Tests (9)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (4)
228
for (int i = 0; i < dataGridView.Rows.
Count
; i++)
1311
int rowCount = dataGridView.Rows.
Count
;
1342
int rowCount = dataGridView.Rows.
Count
;
1385
int rowCount = dataGridView.Rows.
Count
;
System\Windows\Forms\DataGridViewTests.cs (4)
2814
Assert.Equal(rowsCount + 1, control.Rows.
Count
);
2854
Assert.Equal(rowsCount1 + 1, control.Rows.
Count
); // + 1 is the new DGV row
2860
Assert.Equal(rowsCount2 + 1, control.Rows.
Count
); // + 1 is the new DGV row
2868
Assert.Equal(rowsCount2 + 1, control.Rows.
Count
); // + 1 is the new DGV row
System\Windows\Forms\DataGridViewTests.Rendering.cs (1)
146
for (int i = 0; i < dataGridView.Rows.
Count
; i++)
WinFormsControlsTest (3)
DataGridViewInVirtualModeTest.cs (3)
123
_rowInEdit = dataGridView1.Rows.
Count
- 1;
130
if (e.RowIndex >= _customers.Count && e.RowIndex != dataGridView1.Rows.
Count
- 1)
163
if (_rowInEdit == dataGridView1.Rows.
Count
- 2 && _rowInEdit == _customers.Count)