274 references to Count
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
500
if ((e != null) && (e.RowIndex > 0) && (e.RowIndex < Rows.
Count
) &&
624
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
);
2303
&& firstDisplayedCell.RowIndex < Rows.
Count
2526
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, Rows.
Count
);
3095
int rowCount = Rows.
Count
;
3115
int rowCount = Rows.
Count
;
3171
get => Rows.
Count
;
3181
if (value == Rows.
Count
)
3191
else if (value < Rows.
Count
)
3194
while (value < Rows.
Count
)
3196
int currentRowCount = Rows.
Count
;
3198
if (Rows.
Count
>= currentRowCount)
3215
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)
27
if (cellAddress.Y < 0 || cellAddress.Y >= Rows.
Count
)
74
NewRowIndex = Rows.
Count
- 1;
300
Debug.Assert(rowIndex < Rows.
Count
);
370
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
1380
if (Columns.Count == 0 && Rows.
Count
== 0)
1398
allCellsSelected = _individualSelectedCells.Count == Columns.Count * Rows.
Count
;
1432
allCellsSelected = _selectedBandIndexes.Count * Rows.
Count
+ _individualSelectedCells.Count == Columns.Count * Rows.
Count
;
1468
allCellsSelected = _selectedBandIndexes.Count * Columns.Count + _individualSelectedCells.Count == Columns.Count * Rows.
Count
;
1953
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
2128
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
2276
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
2579
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y < Rows.
Count
);
3135
Debug.Assert((AllowUserToAddRowsInternal && Rows.
Count
== 1) || (!AllowUserToAddRowsInternal && Rows.
Count
== 0));
3137
if (Rows.
Count
> 0)
3485
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException, Rows.
Count
);
3494
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException, Rows.
Count
);
4151
if (rowIndex >= Rows.
Count
)
4274
int indexTmp = Rows.
Count
;
4774
int nRows = Rows.
Count
;
5223
Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <= Rows.
Count
);
5351
int rowsCount = Rows.
Count
;
5377
int rowsCount = Rows.
Count
;
5452
Debug.Assert(Rows.
Count
> 1);
5463
Debug.Assert(NewRowIndex == Rows.
Count
- 1);
5475
NewRowIndex = Rows.
Count
- 1;
5806
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5817
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5831
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5878
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5886
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5894
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5902
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
5910
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
6394
Debug.Assert(rowIndex < Rows.
Count
);
6537
&& rowIndexTmp < Rows.
Count
6609
for (rowIndexTmp = 0; rowIndexTmp < Rows.
Count
; rowIndexTmp++)
6870
return cellCount + _selectedBandIndexes.Count * Rows.
Count
;
6907
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
6945
return Rows.
Count
* Columns.Count;
6954
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
7061
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
7106
Debug.Assert(rowIndex >= -1 && rowIndex < Rows.
Count
);
9026
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
9033
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
9198
Debug.Assert(index >= 0 && index < Rows.
Count
);
9785
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
9852
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
9859
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
9888
Debug.Assert(lo < Rows.
Count
);
9889
Debug.Assert(hi < Rows.
Count
);
10044
return columnIndex >= Columns.Count || rowIndex >= Rows.
Count
|| columnIndex == -1 || rowIndex == -1;
10049
return rowIndex >= Rows.
Count
|| rowIndex == -1;
10391
&& (includeNewRow || !AllowUserToAddRowsInternal || firstDisplayedCellAddress.Y != Rows.
Count
- 1))
10592
Debug.Assert(rowIndex == Rows.
Count
- 1);
10788
if (Rows.
Count
> 0)
10807
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
10829
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
10869
if (Rows.
Count
> 0 && dataGridViewColumn.CellType is null)
10936
if (Rows.
Count
> 0)
10959
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
10980
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
11007
CorrectRowFrozenState(dataGridViewRow, rowState, Rows.
Count
);
11076
CorrectRowFrozenStates(dataGridViewRows, rowIndexInserted: Rows.
Count
);
11512
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(e.RowIndex, Rows.
Count
, "e.RowIndex");
11735
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
11823
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
12106
if (hti._row >= Rows.
Count
)
13059
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
13105
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
13280
if (Columns.Count != 0 && Rows.
Count
== 0)
15423
if (Rows.
Count
> 0)
15442
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
15463
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
15900
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
15921
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
15932
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
15989
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
16039
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
16051
if (rowIndex < Rows.
Count
)
16163
&& _ptMouseEnteredCell.Y >= -1 && _ptMouseEnteredCell.Y < Rows.
Count
)
16385
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.
Count
)
17113
for (int rowIndex = 0; rowIndex < Rows.
Count
; rowIndex++)
17240
Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted < Rows.
Count
);
17242
if (rowIndexDeleted >= 0 && rowIndexDeleted < Rows.
Count
)
17264
Debug.Assert(NewRowIndex == Rows.
Count
- 1);
17265
newY = rowIndexNext > -1 && rowIndexNext < Rows.
Count
- 1 ? rowIndexNext - 1 : rowIndexPrevious;
17538
&& Rows.
Count
== 0
17617
if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex < Rows.
Count
)
17662
if (rowIndex < Rows.
Count
&& columnIndex < Columns.Count)
17703
if (calledAddNewOnTheDataConnection && rowIndex > Rows.
Count
- 1)
17706
rowIndex = Math.Min(rowIndex, Rows.
Count
- 1);
17728
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
18011
if (hti._row >= Rows.
Count
)
18323
if (rowIndex < Rows.
Count
&& columnIndex < Columns.Count)
18335
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
18735
if (dataGridViewCell is not null && rowIndex < Rows.
Count
&& columnIndex < Columns.Count)
18782
Debug.Assert(rowIndex < Rows.
Count
&& columnIndex < Columns.Count);
19499
if (Columns.Count > 0 || Rows.
Count
> 0)
19949
if (rowIndex == NewRowIndex || rowIndex >= Rows.
Count
)
19962
int dataGridRowsCount = Rows.
Count
;
19964
int dataGridViewRowsCount = Rows.
Count
; // the number of rows in the dataGridView row collection not counting the AddNewRow
20012
if (dataGridRowsCount != Rows.
Count
)
25336
Debug.Assert(NewRowIndex == Rows.
Count
- 1);
25958
Debug.Assert(rowIndex < Rows.
Count
);
26205
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
26206
Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow < Rows.
Count
);
26265
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
26556
int rowIndex = 0, maxRowIndex = Rows.
Count
;
26577
int rowIndex = 0, maxRowIndex = Rows.
Count
;
26661
if (index >= Rows.
Count
)
26663
index -= Rows.
Count
;
26748
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
26784
Debug.Assert(rowIndex >= 0 && columnIndex < Columns.Count && rowIndex < Rows.
Count
);
26912
if (rowIndex >= Rows.
Count
)
26951
if (oldCurrentCellX < Columns.Count && oldCurrentCellY < Rows.
Count
)
26956
if (oldCurrentCellY != _ptCurrentCell.Y && RowHeadersVisible && oldCurrentCellY < Rows.
Count
)
27115
if (oldCurrentCellX < Columns.Count && oldCurrentCellY < Rows.
Count
)
27120
if (RowHeadersVisible && oldCurrentCellY < Rows.
Count
)
27471
Debug.Assert(columnIndex >= 0 && rowIndex >= 0 && columnIndex < Columns.Count && rowIndex < Rows.
Count
);
27507
for (int row = rowIndex + 1; row < Rows.
Count
; row++)
27580
Debug.Assert(rowIndex >= 0 && rowIndex < Rows.
Count
);
27621
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
27651
if (Rows.
Count
> BulkPaintThreshold)
27670
for (int row = rowIndex + 1; row < Rows.
Count
; row++)
28067
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
28863
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
28877
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
28932
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
28943
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexStart, Rows.
Count
);
28946
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexEnd, Rows.
Count
);
28976
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.
Count
);
29170
&& _ptMouseEnteredCell.Y < Rows.
Count
)
29197
&& _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)
483
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)
313
if (i < 0 || i >= DataGridView.Rows.
Count
- 1)
1304
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1728
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1798
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1878
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
2416
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, dataGridView.Rows.
Count
);
3045
if (DataGridView is not null && 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
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
;
116
int rowCount = dataGridViewRows.
Count
;
162
int rowCount = dataGridViewRows.
Count
;
205
int rowCount = dataGridViewRows.
Count
;
249
int rowCount = dataGridViewRows.
Count
;
293
int rowCount = dataGridViewRows.
Count
;
334
int rowCount = dataGridViewRows.
Count
;
397
int rowCount = dataGridViewRows.
Count
;
440
int rowCount = dataGridViewRows.
Count
;
481
int rowCount = dataGridViewRows.
Count
;
523
int rowCount = dataGridViewRows.
Count
;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
234
(DataGridView is not null && (rowIndex < 0 || rowIndex >= DataGridView.Rows.
Count
)))
363
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)
733
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)
1215
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1242
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1291
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
1372
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.
Count
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (32)
70
int ICollection.Count =>
Count
;
99
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)
230
for (int i = 0; i < dataGridView.Rows.
Count
; i++)
1313
int rowCount = dataGridView.Rows.
Count
;
1344
int rowCount = dataGridView.Rows.
Count
;
1387
int rowCount = dataGridView.Rows.
Count
;
System\Windows\Forms\DataGridViewTests.cs (4)
2815
Assert.Equal(rowsCount + 1, control.Rows.
Count
);
2855
Assert.Equal(rowsCount1 + 1, control.Rows.
Count
); // + 1 is the new DGV row
2861
Assert.Equal(rowsCount2 + 1, control.Rows.
Count
); // + 1 is the new DGV row
2869
Assert.Equal(rowsCount2 + 1, control.Rows.
Count
); // + 1 is the new DGV row
System\Windows\Forms\DataGridViewTests.Rendering.cs (1)
148
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)