292 references to Count
System.Windows.Forms (283)
winforms\Managed\System\WinForms\DataGridView.cs (13)
2186
Debug.Assert(this.ptCurrentCell.Y < this.Rows.
Count
);
2250
Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.
Count
);
2325
Debug.Assert(this.ptCurrentCell.Y < this.Rows.
Count
);
2928
firstDisplayedCell.RowIndex < this.Rows.
Count
&&
3170
if (value < 0 || value >= this.Rows.
Count
)
3951
int rowCount = this.Rows.
Count
;
4042
return this.Rows.
Count
;
4064
if (value != this.Rows.
Count
)
4071
else if (value < this.Rows.
Count
)
4074
while (value < this.Rows.
Count
)
4076
int currentRowCount = this.Rows.
Count
;
4078
if (this.Rows.
Count
>= currentRowCount)
4094
int rowsToAdd = value - this.Rows.
Count
;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (3)
359
UnsafeNativeMethods.IRawElementProviderSimple[] result = new UnsafeNativeMethods.IRawElementProviderSimple[this.owner.Rows.
Count
];
360
for (int i = 0; i < this.owner.Rows.
Count
; i++)
395
if (row >= 0 && row < this.owner.Rows.
Count
&&
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
535
rowIndex < this.DataGridView.Rows.
Count
)
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (3)
100
int rowCount = dataGridViewRows.
Count
;
142
int rowCount = dataGridViewRows.
Count
;
184
int rowCount = dataGridViewRows.
Count
;
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
1567
if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)
2017
if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)
2086
if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)
2160
if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)
2670
if (rowIndex < 0 || rowIndex >= dataGridView.Rows.
Count
)
3466
if (this.DataGridView != null && e.ColumnIndex < this.DataGridView.Columns.Count && e.RowIndex < this.DataGridView.Rows.
Count
)
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (3)
192
if (this.rowIndex < -1 || this.rowIndex >= this.dataGridView.Rows.
Count
)
216
if (this.rowIndex < -1 || this.rowIndex >= this.dataGridView.Rows.
Count
)
245
if (this.rowIndex < -1 || this.rowIndex >= this.dataGridView.Rows.
Count
)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
966
rowIndex < this.DataGridView.Rows.
Count
)
1085
Debug.Assert((position.Y >= 0) && (position.Y < this.DataGridView.Rows.
Count
));
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (5)
118
int rowCount = dataGridViewRows.
Count
;
158
int rowCount = dataGridViewRows.
Count
;
199
int rowCount = dataGridViewRows.
Count
;
242
int rowCount = dataGridViewRows.
Count
;
296
int rowCount = dataGridViewRows.
Count
;
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (11)
57
int rowCount = dataGridViewRows.
Count
;
134
int rowCount = dataGridViewRows.
Count
;
177
int rowCount = dataGridViewRows.
Count
;
218
int rowCount = dataGridViewRows.
Count
;
260
int rowCount = dataGridViewRows.
Count
;
300
int rowCount = dataGridViewRows.
Count
;
339
int rowCount = dataGridViewRows.
Count
;
402
int rowCount = dataGridViewRows.
Count
;
441
int rowCount = dataGridViewRows.
Count
;
480
int rowCount = dataGridViewRows.
Count
;
526
int rowCount = dataGridViewRows.
Count
;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (9)
590
this.currencyManager.List.Count == (this.owner.AllowUserToAddRowsInternal ? this.owner.Rows.
Count
- 1 : this.owner.Rows.
Count
))
685
if (this.owner.NewRowIndex == -1 || e.NewIndex != this.owner.Rows.
Count
)
747
if (this.owner.Rows.
Count
> 0 &&
773
if (this.owner.Rows.
Count
== (owner.AllowUserToAddRowsInternal ? 1 : 0))
849
int result = this.owner.Rows.
Count
;
850
if (this.owner.AllowUserToAddRowsInternal && this.owner.Rows.
Count
> 0)
1346
else if (rowIndex < this.owner.Rows.
Count
)
1370
(columnIndex < this.owner.Columns.Count && rowIndex < this.owner.Rows.
Count
&&
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
334
(this.DataGridView != null && (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)))
459
if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (3)
117
int rowCount = dataGridViewRows.
Count
;
211
int rowCount = dataGridViewRows.
Count
;
250
int rowCount = dataGridViewRows.
Count
;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
839
rowIndex < this.DataGridView.Rows.
Count
)
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (7)
52
int rowCount = dataGridViewRows.
Count
;
123
int rowCount = dataGridViewRows.
Count
;
162
int rowCount = dataGridViewRows.
Count
;
214
int rowCount = dataGridViewRows.
Count
;
256
int rowCount = dataGridViewRows.
Count
;
296
int rowCount = dataGridViewRows.
Count
;
335
int rowCount = dataGridViewRows.
Count
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (162)
43
if (cellAddress.Y < 0 || cellAddress.Y >= this.Rows.
Count
)
86
this.newRowIndex = this.Rows.
Count
- 1;
317
Debug.Assert(rowIndex < this.Rows.
Count
);
378
Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.
Count
);
1370
if (this.Columns.Count == 0 && this.Rows.
Count
== 0)
1387
allCellsSelected = this.individualSelectedCells.Count == this.Columns.Count * this.Rows.
Count
;
1418
allCellsSelected = this.selectedBandIndexes.Count * this.Rows.
Count
+ this.individualSelectedCells.Count == this.Columns.Count * this.Rows.
Count
;
1451
allCellsSelected = this.selectedBandIndexes.Count * this.Columns.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.
Count
;
1952
if (rowIndex < 0 || rowIndex >= this.Rows.
Count
)
2138
if (rowIndex < -1 || rowIndex >= this.Rows.
Count
)
2298
Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.
Count
);
2616
Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.
Count
);
3165
Debug.Assert((this.AllowUserToAddRowsInternal && this.Rows.
Count
== 1) ||
3166
(!this.AllowUserToAddRowsInternal && this.Rows.
Count
== 0));
3167
if (this.Rows.
Count
> 0)
3531
if (rowIndexException < 0 || rowIndexException >= this.Rows.
Count
)
3541
if (rowIndexException < -1 || rowIndexException >= this.Rows.
Count
)
4135
if (rowIndex >= this.Rows.
Count
)
4246
int indexTmp = this.Rows.
Count
;
4753
int nRows = this.Rows.
Count
;
5226
Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <= this.Rows.
Count
);
5350
int rowsCount = this.Rows.
Count
;
5376
int rowsCount = this.Rows.
Count
;
5464
Debug.Assert(this.Rows.
Count
> 1);
5475
Debug.Assert(this.newRowIndex == this.Rows.
Count
- 1);
5486
this.newRowIndex = this.Rows.
Count
- 1;
5857
dgvcme.RowIndex < this.Rows.
Count
)
5868
dgvcme.RowIndex < this.Rows.
Count
)
5880
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.
Count
)
5920
dgvcme.RowIndex < this.Rows.
Count
)
5929
dgvcme.RowIndex < this.Rows.
Count
)
5937
dgvcme.RowIndex < this.Rows.
Count
)
5945
dgvcme.RowIndex < this.Rows.
Count
)
5953
dgvcme.RowIndex < this.Rows.
Count
)
6417
Debug.Assert(rowIndex < this.Rows.
Count
);
6561
rowIndexTmp < this.Rows.
Count
&&
6937
return cellCount + this.selectedBandIndexes.Count * this.Rows.
Count
;
6971
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
7007
return this.Rows.
Count
* this.Columns.Count;
7016
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
7125
if (rowIndex >= this.Rows.
Count
)
7182
Debug.Assert(rowIndex >= -1 && rowIndex < this.Rows.
Count
);
9108
if (rowIndex < 0 || rowIndex >= this.Rows.
Count
)
9117
Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.
Count
);
9283
Debug.Assert(index >= 0 && index < this.Rows.
Count
);
9959
if (rowIndex < -1 || rowIndex >= this.Rows.
Count
)
10030
if (rowIndex < 0 || rowIndex >= this.Rows.
Count
)
10039
Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.
Count
);
10064
Debug.Assert(lo < this.Rows.
Count
);
10065
Debug.Assert(hi < this.Rows.
Count
);
10218
return columnIndex >= this.Columns.Count || rowIndex >= this.Rows.
Count
|| columnIndex == -1 || rowIndex == -1;
10223
return rowIndex >= this.Rows.
Count
|| rowIndex == -1;
10572
firstDisplayedCellAddress.Y != this.Rows.
Count
- 1))
10694
Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.
Count
);
10765
Debug.Assert(rowIndex == this.Rows.
Count
- 1);
10942
if (this.Rows.
Count
> 0)
10960
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
10979
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
11019
if (this.Rows.
Count
> 0 && dataGridViewColumn.CellType == null)
11080
if (this.Rows.
Count
> 0)
11102
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
11122
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
11151
CorrectRowFrozenState(dataGridViewRow, rowState, this.Rows.
Count
);
11217
CorrectRowFrozenStates(dataGridViewRows, this.Rows.
Count
/*rowIndexInserted*/);
11728
if (e.RowIndex >= this.Rows.
Count
)
11765
if (e.RowIndex >= this.Rows.
Count
)
11851
if (e.RowIndex >= this.Rows.
Count
)
11887
if (e.RowIndex >= this.Rows.
Count
)
11924
if (e.RowIndex >= this.Rows.
Count
)
11950
if (e.RowIndex >= this.Rows.
Count
)
11969
if (e.RowIndex >= this.Rows.
Count
)
12000
if (e.RowIndex >= this.Rows.
Count
)
12022
Debug.Assert(rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count);
12036
if (e.RowIndex >= this.Rows.
Count
)
12073
if (e.RowIndex >= this.Rows.
Count
)
12103
if (e.RowIndex >= this.Rows.
Count
)
12133
if (e.RowIndex >= this.Rows.
Count
)
12155
Debug.Assert(rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count);
12169
if (e.RowIndex >= this.Rows.
Count
)
12198
if (e.RowIndex >= this.Rows.
Count
)
12230
if (e.RowIndex >= this.Rows.
Count
)
12262
if (e.RowIndex >= this.Rows.
Count
)
12475
if (hti.row >= this.Rows.
Count
)
12924
if (e.RowIndex >= this.Rows.
Count
)
12958
if (e.RowIndex >= this.Rows.
Count
)
12992
if (e.RowIndex >= this.Rows.
Count
)
13060
if (e.RowIndex >= this.Rows.
Count
)
13091
if (e.RowIndex >= this.Rows.
Count
)
13120
if (e.RowIndex >= this.Rows.
Count
)
13218
if (e.RowIndex >= this.Rows.
Count
)
13404
if (e.RowIndex >= this.Rows.
Count
)
13430
if (e.RowIndex >= this.Rows.
Count
)
13452
Debug.Assert(rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count);
13466
if (e.RowIndex >= this.Rows.
Count
)
13504
Debug.Assert(rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count);
13519
if (e.RowIndex >= this.Rows.
Count
)
13557
if (e.RowIndex >= this.Rows.
Count
)
13586
if (e.RowIndex < 0 || e.RowIndex >= this.Rows.
Count
)
13617
if (e.RowIndex < 0 || e.RowIndex >= this.Rows.
Count
)
13738
if (this.Columns.Count != 0 && this.Rows.
Count
== 0)
15906
if (this.Rows.
Count
> 0)
15924
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
15944
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
16352
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.
Count
)
16373
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.
Count
)
16383
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.
Count
)
16438
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.
Count
)
16474
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.
Count
)
16485
if (rowIndex < this.Rows.
Count
)
16586
this.ptMouseEnteredCell.Y >= -1 && this.ptMouseEnteredCell.Y < this.Rows.
Count
)
16825
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.
Count
)
17564
for (int rowIndex = 0; rowIndex < this.Rows.
Count
; rowIndex++)
17690
Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted < this.Rows.
Count
);
17706
Debug.Assert(this.newRowIndex == this.Rows.
Count
-1);
17707
if (rowIndexNext > -1 && rowIndexNext < this.Rows.
Count
- 1)
17969
this.Rows.
Count
== 0 &&
18075
if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex < this.Rows.
Count
)
18120
if (rowIndex < this.Rows.
Count
&&
18161
if (calledAddNewOnTheDataConnection && rowIndex > this.Rows.
Count
- 1)
18165
rowIndex = Math.Min(rowIndex, this.Rows.
Count
- 1);
18187
Debug.Assert(rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count);
18481
if (hti.row >= this.Rows.
Count
)
18823
if (rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count)
18835
Debug.Assert(rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count);
19270
if (dataGridViewCell != null && rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count)
19318
Debug.Assert(rowIndex < this.Rows.
Count
&& columnIndex < this.Columns.Count);
20049
if (this.Columns.Count > 0 || this.Rows.
Count
> 0)
20482
if (rowIndex == this.newRowIndex || rowIndex >= this.Rows.
Count
)
20495
int dataGridRowsCount = this.Rows.
Count
;
20547
if (dataGridRowsCount != this.Rows.
Count
)
25503
Debug.Assert(this.newRowIndex == this.Rows.
Count
- 1);
26081
Debug.Assert(rowIndex < this.Rows.
Count
);
26312
Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.
Count
);
26313
Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingRow < this.Rows.
Count
);
26371
Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.
Count
);
26655
int rowIndex = 0, maxRowIndex = this.Rows.
Count
;
26673
int rowIndex = 0, maxRowIndex = this.Rows.
Count
;
26751
if (index >= this.Rows.
Count
)
26753
index -= this.Rows.
Count
;
26838
rowIndex >= this.Rows.
Count
)
26865
rowIndex < this.Rows.
Count
);
26979
if (rowIndex >= this.Rows.
Count
)
27023
if (oldCurrentCellX < this.Columns.Count && oldCurrentCellY < this.Rows.
Count
)
27027
if (oldCurrentCellY != this.ptCurrentCell.Y && this.RowHeadersVisible && oldCurrentCellY < this.Rows.
Count
)
27164
if (oldCurrentCellX < this.Columns.Count && oldCurrentCellY < this.Rows.
Count
)
27168
if (this.RowHeadersVisible && oldCurrentCellY < this.Rows.
Count
)
27488
rowIndex < this.Rows.
Count
);
27524
for (int row = rowIndex+1; row < this.Rows.
Count
; row++)
27593
Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.
Count
);
27638
if (rowIndex < 0 || rowIndex >= this.Rows.
Count
)
27671
if (this.Rows.
Count
> DATAGRIDVIEW_bulkPaintThreshold)
27688
for (int row = rowIndex+1; row < this.Rows.
Count
; row++)
28068
if (rowIndex < 0 || rowIndex >= this.Rows.
Count
)
28910
if (rowIndex < -1 || rowIndex >= this.Rows.
Count
)
28927
if (rowIndex < 0 || rowIndex >= this.Rows.
Count
)
28982
if (rowIndex < 0 || rowIndex >= this.Rows.
Count
)
28995
if (rowIndexStart < 0 || rowIndexStart >= this.Rows.
Count
)
28999
if (rowIndexEnd < 0 || rowIndexEnd >= this.Rows.
Count
)
29033
if ((updateToEnd && rowIndex < 0) || (!updateToEnd && rowIndex < -1) || rowIndex >= this.Rows.
Count
)
29213
this.ptMouseEnteredCell.Y < this.Rows.
Count
)
29237
this.ptMouseEnteredCell.Y < this.Rows.
Count
)
winforms\Managed\System\WinForms\DataGridViewRow.cs (4)
1313
if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)
1343
if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)
1390
if (!(this.DataGridView == null || (rowIndex >= 0 && rowIndex < this.DataGridView.Rows.
Count
)))
1474
if (!(this.DataGridView == null || (rowIndex >= 0 && rowIndex < this.DataGridView.Rows.
Count
)))
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (34)
149
return this.
Count
;
220
int rowCount = this.
Count
;
375
Debug.Assert(this.DataGridView.NewRowIndex == this.
Count
- 1);
376
int insertionIndex = this.
Count
- 1;
537
Debug.Assert(this.DataGridView.NewRowIndex == this.
Count
- 1);
538
int insertionIndex = this.
Count
- 1;
575
Debug.Assert(this.DataGridView.NewRowIndex == this.
Count
- 1);
576
int insertionIndex = this.
Count
- 1;
646
Debug.Assert(this.DataGridView.NewRowIndex == this.
Count
- 1);
648
int insertionIndex = this.
Count
- 1;
653
if (indexSource < 0 || indexSource >= this.
Count
)
710
Debug.Assert(this.DataGridView.NewRowIndex == this.
Count
- 1);
711
int insertionIndex = this.
Count
- 1;
721
if (indexSource < 0 || this.
Count
<= indexSource)
878
Debug.Assert(this.DataGridView.NewRowIndex == this.
Count
- 1);
879
InsertRange(this.
Count
- 1, dataGridViewRows);
1009
for (int i = 0; i < this.
Count
; i++)
1526
if (rowIndex < 0 || this.
Count
< rowIndex)
1551
if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.
Count
)
1583
if (rowIndex < 0 || this.
Count
< rowIndex)
1598
if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.
Count
)
1626
Debug.Assert(rowIndex >= 0 && rowIndex <= this.
Count
);
1630
Debug.Assert(this.DataGridView.NewRowIndex == -1 || rowIndex != this.
Count
);
1713
if (indexSource < 0 || this.
Count
<= indexSource)
1718
if (indexDestination < 0 || this.
Count
< indexDestination)
1728
if (this.DataGridView.NewRowIndex != -1 && indexDestination == this.
Count
)
1888
if (rowIndex < 0 || rowIndex > this.
Count
)
1898
if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.
Count
)
2290
if (index < 0 || index >= this.
Count
)
2328
Debug.Assert(index >= 0 && index < this.
Count
);
2375
Debug.Assert(index < this.
Count
);
2925
if (this.current < this.owner.
Count
- 1)
2932
this.current = this.owner.
Count
;
2956
if (this.current == this.owner.
Count
)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
224
if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
)
421
if (this.DataGridView != null && (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.
Count
))
702
if (this.DataGridView != null && (rowIndex < -1 || rowIndex >= this.DataGridView.Rows.
Count
))
winforms\Managed\System\WinForms\DataGridViewRowPostPaintEventArgs.cs (5)
158
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
174
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
191
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
213
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
241
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
winforms\Managed\System\WinForms\DataGridViewRowPrePaintEventArgs.cs (5)
177
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
193
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
210
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
232
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
260
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.
Count
)
winforms\Managed\System\WinForms\DataGridViewTextBoxColumn.cs (1)
73
int rowCount = dataGridViewRows.
Count
;
System.WorkflowServices (9)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (9)
164
Fx.Assert(this.parametersGrid.Rows.
Count
!= 0, "parameters grid should have atleast the dummy <add new> item");
165
this.parametersGrid.Rows.Insert(this.parametersGrid.Rows.
Count
- 1, GenerateParameterName(), typeof(string), SR2.GetString(SR2.ParameterDirectionIn));
167
this.parametersGrid.CurrentCell = this.parametersGrid.Rows[this.parametersGrid.Rows.
Count
- 2].Cells[this.nameColumn.Index];
294
Fx.Assert(currentRowIndex < (this.parametersGrid.Rows.
Count
- 2), "cant move down the template row or the one above it");
309
Fx.Assert(currentRowIndex != (this.parametersGrid.Rows.
Count
- 1), "cant move up the template row");
569
if (currentRowIndex != (this.parametersGrid.Rows.
Count
- 1) && (currentRowIndex != 0))
576
if (currentRowIndex < (this.parametersGrid.Rows.
Count
- 2))
588
Fx.Assert(currentRowIndex != (this.parametersGrid.Rows.
Count
- 1), "cant delete the template row");
773
if (parameterName.Equals(this.ParameterTemplateRowName) && (e.RowIndex == this.parametersGrid.Rows.
Count
- 1))