977 references to Rows
System.Windows.Forms (949)
winforms\Managed\System\WinForms\DataGridView.cs (44)
2186
Debug.Assert(this.ptCurrentCell.Y < this.
Rows
.Count);
2187
DataGridViewRow dataGridViewRow = (DataGridViewRow) this.
Rows
[this.ptCurrentCell.Y]; // unsharing row
2211
(this.
Rows
.GetRowState(value.RowIndex) & DataGridViewElementStates.Visible) == 0)
2250
Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.
Rows
.Count);
2251
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(this.ptCurrentCell.Y);
2270
bool previousVisibleRowExists = (-1 != this.
Rows
.GetPreviousRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible));
2288
bool nextVisibleRowExists = (-1 != this.
Rows
.GetNextRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible));
2325
Debug.Assert(this.ptCurrentCell.Y < this.
Rows
.Count);
2327
return this.
Rows
[this.ptCurrentCell.Y];
2909
return this.
Rows
[firstDisplayedCellAddress.Y].Cells[firstDisplayedCellAddress.X]; // unshares the row of first displayed cell
2928
firstDisplayedCell.RowIndex < this.
Rows
.Count &&
2939
if (!this.
Rows
[firstDisplayedCell.RowIndex].Frozen)
2958
ptFirstDisplayedCellAddress.Y = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
3039
int firstDisplayedRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
3042
if ((this.
Rows
.GetRowState(firstDisplayedRowIndex) & DataGridViewElementStates.Frozen) == 0 &&
3170
if (value < 0 || value >= this.
Rows
.Count)
3174
if ((this.
Rows
.GetRowState(value) & DataGridViewElementStates.Visible) == 0)
3178
if ((this.
Rows
.GetRowState(value) & DataGridViewElementStates.Frozen) != 0)
3194
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
3223
int rowsToScroll = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, value);
3731
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
3742
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
3752
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
3951
int rowCount = this.
Rows
.Count;
4042
return this.
Rows
.Count;
4064
if (value != this.
Rows
.Count)
4069
this.
Rows
.Clear();
4071
else if (value < this.
Rows
.Count)
4074
while (value < this.
Rows
.Count)
4076
int currentRowCount = this.
Rows
.Count;
4077
this.
Rows
.RemoveAt(currentRowCount - (this.AllowUserToAddRowsInternal ? 2 : 1));
4078
if (this.
Rows
.Count >= currentRowCount)
4094
int rowsToAdd = value - this.
Rows
.Count;
4097
this.
Rows
.Add(rowsToAdd);
4581
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
4632
foreach (DataGridViewRow dataGridViewRow in this.
Rows
) // unshares all rows!
4648
DataGridViewRow dataGridViewRow = (DataGridViewRow) this.
Rows
[rowIndex]; // unshares the selected row
4718
strc.Add((DataGridViewRow) this.
Rows
[rowIndex]); // unshares the selected row
5090
DataGridViewRow row = this.
Rows
[rowIndex];
5095
DataGridViewRow row = this.
Rows
[rowIndex];
5110
DataGridViewRow row = this.
Rows
[rowIndex];
5115
DataGridViewRow row = this.
Rows
[rowIndex];
5201
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
5292
return -1 != this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (12)
114
if (index < this.owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible))
116
int actualRowIndex = this.owner.
Rows
.DisplayIndexToRowIndex(index);
117
return this.owner.
Rows
[actualRowIndex].AccessibilityObject;
120
index -= this.owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
153
int childCount = this.owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
202
return this.owner.
Rows
[hti.RowIndex].Cells[hti.ColumnIndex].AccessibilityObject;
216
return this.owner.
Rows
[hti.RowIndex].AccessibilityObject;
359
UnsafeNativeMethods.IRawElementProviderSimple[] result = new UnsafeNativeMethods.IRawElementProviderSimple[this.owner.
Rows
.Count];
360
for (int i = 0; i < this.owner.
Rows
.Count; i++)
362
result[i] = this.owner.
Rows
[i].HeaderCell.AccessibilityObject;
395
if (row >= 0 && row < this.owner.
Rows
.Count &&
398
return this.owner.
Rows
[row].Cells[column].AccessibilityObject;
winforms\Managed\System\WinForms\DataGridViewBand.cs (2)
981
this.DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
982
this.DataGridView.
Rows
.InvalidateCachedRowsHeight(elementState);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
535
rowIndex < this.DataGridView.
Rows
.Count)
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (3)
99
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
141
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
183
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
winforms\Managed\System\WinForms\DataGridViewCell.cs (30)
236
Debug.Assert(this.DataGridView.
Rows
.GetRowState(this.RowIndex) == this.DataGridView.
Rows
.SharedRow(this.RowIndex).State);
401
Debug.Assert(this.DataGridView.
Rows
.GetRowState(this.RowIndex) == this.DataGridView.
Rows
.SharedRow(this.RowIndex).State);
590
Debug.Assert(this.DataGridView.
Rows
.GetRowState(this.RowIndex) == this.DataGridView.
Rows
.SharedRow(this.RowIndex).State);
666
Debug.Assert(this.DataGridView.
Rows
.GetRowState(this.RowIndex) == this.DataGridView.
Rows
.SharedRow(this.RowIndex).State);
714
Debug.Assert(this.DataGridView.
Rows
.GetRowState(this.RowIndex) == this.DataGridView.
Rows
.SharedRow(this.RowIndex).State);
977
Debug.Assert(this.DataGridView.
Rows
.GetRowState(this.RowIndex) == this.DataGridView.
Rows
.SharedRow(this.RowIndex).State);
1205
DataGridViewElementStates rowState = this.DataGridView.
Rows
.GetRowState(rowIndex);
1231
rowIndex == this.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible) /*isLastVisibleRow*/);
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)
2095
if (this.DataGridView.
Rows
.SharedRow(rowIndex) != this.owningRow)
2100
DataGridViewElementStates rowEffectiveState = this.DataGridView.
Rows
.GetRowState(rowIndex);
2160
if (rowIndex < 0 || rowIndex >= this.DataGridView.
Rows
.Count)
2195
if (this.DataGridView.
Rows
.SharedRow(rowIndex).HasDefaultCellStyle)
2197
rowStyle = this.DataGridView.
Rows
.SharedRow(rowIndex).DefaultCellStyle;
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)
5271
if (this.owner.OwningRow.Index == this.owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
5285
int previousVisibleRow = this.owner.DataGridView.
Rows
.GetPreviousRow(this.owner.OwningRow.Index, DataGridViewElementStates.Visible);
5286
return this.owner.DataGridView.
Rows
[previousVisibleRow].Cells[this.owner.OwningColumn.Index].AccessibilityObject;
5289
if (this.owner.OwningRow.Index == this.owner.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
5295
int nextVisibleRow = this.owner.DataGridView.
Rows
.GetNextRow(this.owner.OwningRow.Index, DataGridViewElementStates.Visible);
5296
return this.owner.DataGridView.
Rows
[nextVisibleRow].Cells[this.owner.OwningColumn.Index].AccessibilityObject;
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 (3)
966
rowIndex < this.DataGridView.
Rows
.Count)
1085
Debug.Assert((position.Y >= 0) && (position.Y < this.DataGridView.
Rows
.Count));
1087
int visibleRowIndex = this.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, position.Y);
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (5)
117
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
157
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
198
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
241
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
295
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
winforms\Managed\System\WinForms\DataGridViewColumn.cs (8)
1262
for (rowIndex = dataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1264
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1266
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
1286
rowIndex = dataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
1289
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
1303
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex,
1312
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
1326
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2008
DataGridViewElementStates rowState = this.DataGridView.
Rows
.GetRowState(rowIndex);
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (11)
56
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
133
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
176
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
217
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
259
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
299
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
338
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
401
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
440
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
479
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
525
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (13)
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)
687
this.owner.
Rows
.InsertInternal(e.NewIndex, this.owner.RowTemplateClone, true /*force*/);
698
this.owner.
Rows
.RemoveAtInternal(e.NewIndex, true /*force*/);
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)
1357
if ((this.owner.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
1360
this.owner.
Rows
[rowIndex].Visible = true;
1370
(columnIndex < this.owner.Columns.Count && rowIndex < this.owner.
Rows
.Count &&
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (4)
334
(this.DataGridView != null && (rowIndex < 0 || rowIndex >= this.DataGridView.
Rows
.Count)))
338
if (this.DataGridView != null && this.DataGridView.
Rows
.SharedRow(rowIndex) != this.OwningRow)
459
if (rowIndex < 0 || rowIndex >= this.DataGridView.
Rows
.Count)
463
if (this.DataGridView.
Rows
.SharedRow(rowIndex) != this.OwningRow)
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (3)
116
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
210
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
249
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
839
rowIndex < this.DataGridView.
Rows
.Count)
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (7)
51
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
122
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
161
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
213
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
255
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
295
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
334
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (746)
43
if (cellAddress.Y < 0 || cellAddress.Y >= this.
Rows
.Count)
48
int visibleRowIndex = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, cellAddress.Y);
85
this.
Rows
.AddInternal(true /*newRow*/, null /*values*/);
86
this.newRowIndex = this.
Rows
.Count - 1;
91
DataGridViewRowEventArgs dgvre = new DataGridViewRowEventArgs(this.
Rows
[this.newRowIndex]);
317
Debug.Assert(rowIndex < this.
Rows
.Count);
331
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
378
Debug.Assert(rowIndex >= 0 && rowIndex < this.
Rows
.Count);
389
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
399
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).HeaderCell;
417
this.
Rows
.SharedRow(rowIndex).GetHeightInfo(rowIndex, out height, out minimumHeight);
430
this.
Rows
[rowIndex].Thickness = preferredThickness; // unsharing the resized row
459
for (int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
461
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
467
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
477
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).HeaderCell;
494
if (this.
Rows
.SharedRow(rowIndex).Height < preferredHeight)
496
this.
Rows
[rowIndex].Height = preferredHeight; // unsharing the row to be resized
511
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
515
rowIndex = this.
Rows
.GetNextRow(rowIndex,
525
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
937
int totalVisibleRowCount = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
938
int totalVisibleHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
939
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
944
if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
945
this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
1293
for (int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1295
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1311
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
1315
cy += this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1316
rowIndex = this.
Rows
.GetNextRow(rowIndex,
1330
cy += this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1331
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
1339
int rowAboveFirstVisibleScrollingRow = this.
Rows
.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
1350
cy += this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1351
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
1370
if (this.Columns.Count == 0 && this.
Rows
.Count == 0)
1375
(this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible) == -1 ||
1387
allCellsSelected = this.individualSelectedCells.Count == this.Columns.Count * this.
Rows
.Count;
1394
for (int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1396
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1398
dataGridViewRow = this.
Rows
[rowIndex]; // unshares this row
1418
allCellsSelected = this.selectedBandIndexes.Count * this.
Rows
.Count + this.individualSelectedCells.Count == this.Columns.Count * this.
Rows
.Count;
1430
for (int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1432
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1434
dataGridViewRow = this.
Rows
[rowIndex]; // unshares this row
1451
allCellsSelected = this.selectedBandIndexes.Count * this.Columns.Count + this.individualSelectedCells.Count == this.Columns.Count * this.
Rows
.Count;
1458
for (int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1460
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1463
((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
1464
if ((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
1466
dataGridViewRow = this.
Rows
[rowIndex]; // unshares this row
1952
if (rowIndex < 0 || rowIndex >= this.
Rows
.Count)
2029
rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2034
preferredWidth = Math.Max(preferredWidth, this.
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex, this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex)));
2038
preferredWidth = Math.Max(preferredWidth, this.
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width);
2046
rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2049
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
2060
rowIndex = this.
Rows
.GetNextRow(rowIndex,
2068
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
2079
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
2086
for (rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2088
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
2092
preferredWidth = Math.Max(preferredWidth, this.
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex, this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex)));
2096
preferredWidth = Math.Max(preferredWidth, this.
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width);
2138
if (rowIndex < -1 || rowIndex >= this.
Rows
.Count)
2158
rowIndex != this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
2165
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
2202
rowIndexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2207
preferredWidth = Math.Max(preferredWidth, this.
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp, this.
Rows
.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)));
2211
preferredWidth = Math.Max(preferredWidth, this.
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width);
2219
rowIndexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2222
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndexTmp);
2233
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp,
2241
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndexTmp);
2252
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
2259
for (rowIndexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2261
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible))
2265
preferredWidth = Math.Max(preferredWidth, this.
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp, this.
Rows
.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)));
2269
preferredWidth = Math.Max(preferredWidth, this.
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width);
2298
Debug.Assert(rowIndex >= 0 && rowIndex < this.
Rows
.Count);
2315
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
2333
this.
Rows
[rowIndex].ThicknessInternal = preferredThickness; // unsharing the resized row
2340
this.
Rows
[rowIndex].ThicknessInternal = preferredThickness; // unsharing the resized row
2344
this.
Rows
[rowIndex].Thickness = preferredThickness; // unsharing the resized row
2435
int rowIndex = this.
Rows
.GetNextRow(rowIndexStart - 1, DataGridViewElementStates.Visible);
2443
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
2616
Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.
Rows
.Count);
2810
clip.Y = topEdge + this.
Rows
.SharedRow(index).GetMinimumHeight(index) - mouseBarOffset - 1;
3165
Debug.Assert((this.AllowUserToAddRowsInternal && this.
Rows
.Count == 1) ||
3166
(!this.AllowUserToAddRowsInternal && this.
Rows
.Count == 0));
3167
if (this.
Rows
.Count > 0)
3171
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
3254
Debug.Assert(0 == this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible));
3531
if (rowIndexException < 0 || rowIndexException >= this.
Rows
.Count)
3541
if (rowIndexException < -1 || rowIndexException >= this.
Rows
.Count)
4135
if (rowIndex >= this.
Rows
.Count)
4141
int lastVisibleRowIndex = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
4152
if (rowIndex > -1 && (this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
4246
int indexTmp = this.
Rows
.Count;
4257
DataGridViewElementStates rowState = this.
Rows
.GetRowState(indexTmp);
4264
indexTmp = this.
Rows
.GetPreviousRow(indexTmp,
4271
rowHeight = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
4281
indexTmp = this.
Rows
.GetPreviousRow(indexTmp,
4286
rowHeight = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
4299
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
4305
height += this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
4306
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
4317
int lastVisibleRowIndex = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
4318
return this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) +
4319
this.
Rows
.SharedRow(lastVisibleRowIndex).GetHeight(lastVisibleRowIndex);
4505
int totalVisibleHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
4506
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
4753
int nRows = this.
Rows
.Count;
4774
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
4782
cy += this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
4822
(this.
Rows
.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Frozen) != 0 ||
4823
(this.
Rows
.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Visible) == 0
4832
if ((this.
Rows
.GetRowState(i) & DataGridViewElementStates.Visible) != 0)
4834
cy += this.
Rows
.SharedRow(i).GetHeight(i);
4848
if ((this.
Rows
.GetRowState(i) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.Visible)) == DataGridViewElementStates.Visible)
4850
int height = this.
Rows
.SharedRow(i).GetHeight(i);
5226
Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <= this.
Rows
.Count);
5228
int previousRowIndex = this.
Rows
.GetPreviousRow(anticipatedRowIndex,
5232
(this.
Rows
.GetRowState(previousRowIndex) & DataGridViewElementStates.Frozen) == 0 &&
5239
int nextRowIndex = this.
Rows
.GetNextRow((previousRowIndex == -1) ? anticipatedRowIndex - 1 : previousRowIndex,
5243
(this.
Rows
.GetRowState(nextRowIndex) & DataGridViewElementStates.Frozen) != 0 &&
5256
int rowIndexTmp = this.
Rows
.GetPreviousRow(rowIndexInserted, DataGridViewElementStates.Visible);
5259
previousRowFrozen = (this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5263
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexInserted - 1, DataGridViewElementStates.Visible);
5267
nextRowFrozen = (this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5292
if (((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) != 0 && !frozenStateChanging) ||
5293
((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0 && frozenStateChanging))
5296
rowIndexTmp = this.
Rows
.GetPreviousRow(rowIndex,
5300
int dataGridViewRowFirst = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
5308
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, true);
5309
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp,
5317
rowIndexTmp = this.
Rows
.GetNextRow(rowIndex,
5325
rowIndexTmp = this.
Rows
.GetNextRow(dataGridViewRowLast,
5340
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, false);
5341
rowIndexTmp = this.
Rows
.GetPreviousRow(rowIndexTmp,
5350
int rowsCount = this.
Rows
.Count;
5353
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
5376
int rowsCount = this.
Rows
.Count;
5379
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
5464
Debug.Assert(this.
Rows
.Count > 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*/);
5486
this.newRowIndex = this.
Rows
.Count - 1;
5487
Debug.Assert((this.
Rows
.GetRowState(this.newRowIndex) & DataGridViewElementStates.Visible) != 0);
5490
OnDefaultValuesNeeded(new DataGridViewRowEventArgs(this.
Rows
[this.newRowIndex]));
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)
6353
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(this.trackRow);
6366
dataGridViewRow = this.
Rows
[this.trackRow]; // Unsharing row
6417
Debug.Assert(rowIndex < this.
Rows
.Count);
6418
Debug.Assert((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
6419
Debug.Assert((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0);
6427
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6459
if ((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6461
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
6463
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6471
rowIndexTmp = this.
Rows
.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6472
while (rowIndexTmp != -1 && (this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6474
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6475
rowIndexTmp = this.
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6484
rowIndexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6486
while (rowIndexTmp != -1 && (this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6488
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6489
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6494
rowIndexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6498
if ((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6500
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
6502
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6507
while (rowIndexTmp != -1 && (this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6509
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6510
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6519
int firstDisplayedFrozenRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6523
lastDisplayedFrozenRowIndex = this.
Rows
.GetNextRow(firstDisplayedFrozenRowIndex, DataGridViewElementStates.Visible, this.displayedBandsInfo.NumDisplayedFrozenRows-2 /*skipRows*/);
6535
lastDisplayedScrollingRowIndex = this.
Rows
.GetNextRow(this.displayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, this.displayedBandsInfo.NumDisplayedScrollingRows - 2 /*skipRows*/);
6548
if ((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6554
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6555
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6561
rowIndexTmp < this.
Rows
.Count &&
6567
if ((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6573
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6574
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6585
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible, this.displayedBandsInfo.OldNumDisplayedScrollingRows - 1);
6588
rowIndexTmp = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
6595
if ((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6597
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6599
rowIndexTmp = this.
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible);
6605
rowIndexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6608
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, this.displayedBandsInfo.OldNumDisplayedFrozenRows - 1);
6611
rowIndexTmp = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6618
if ((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6620
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6622
rowIndexTmp = this.
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible);
6643
if (!this.ColumnHeadersVisible && this.
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 0)
6937
return cellCount + this.selectedBandIndexes.Count * this.
Rows
.Count;
6971
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
6973
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
6990
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
7007
return this.
Rows
.Count * this.Columns.Count;
7016
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
7018
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
7019
if (!visibleRequired || (this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0)
7043
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
7125
if (rowIndex >= this.
Rows
.Count)
7182
Debug.Assert(rowIndex >= -1 && rowIndex < this.
Rows
.Count);
7185
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
7235
if (this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) == 0)
7242
includeColumnHeaders = (this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Selected) == -1);
7371
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7373
int nextRowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7384
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7398
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7414
cellContent = this.
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(rowIndex,
7433
cellContent = this.
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(rowIndex,
7449
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7463
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7479
nextRowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7515
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
7643
nextRowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
7656
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7670
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7686
cellContent = this.
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(rowIndex,
7705
cellContent = this.
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(rowIndex,
7721
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7735
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7751
nextRowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
7776
selectedVisibleRowExists = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) != 0;
7782
selectedVisibleCellExists = selectedVisibleColumnExists && this.
Rows
.GetRowCount(DataGridViewElementStates.Visible) != 0;
7912
if ((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0)
7929
firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
7930
int lastVisibleRowIndex = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
8097
nextRowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
8122
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
8138
cellContent = this.
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(rowIndex,
8155
cellContent = this.
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(rowIndex,
8182
cellContent = this.
Rows
.SharedRow(rowIndex).Cells[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
8642
int visibleRowsHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
8643
int frozenVisibleRowsHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
8673
(this.
Rows
.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0 &&
8675
(this.
Rows
.GetRowState(this.trackRowEdge) & DataGridViewElementStates.Frozen) != 0 &&
8677
(this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Frozen) == 0)
8681
int firstUnfrozenRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
8708
((this.
Rows
.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0 ||
8709
(this.trackRowEdge != -1 && (this.
Rows
.GetRowState(this.trackRowEdge) & DataGridViewElementStates.Frozen) == 0)) &&
8734
if (this.verticalOffset + this.
Rows
.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <=
8786
firstRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
8888
(this.ptAnchorCell.Y != -1 && (this.
Rows
.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0)
8890
(this.ptCurrentCell.Y != -1 && (this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
8915
if (this.verticalOffset + this.
Rows
.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <=
9095
int preferredHeight = Math.Min(minimumHeight + this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible), proposedConstraints.Height);
9108
if (rowIndex < 0 || rowIndex >= this.
Rows
.Count)
9117
Debug.Assert(rowIndex >= 0 && rowIndex < this.
Rows
.Count);
9119
if ((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) == 0)
9128
for (indexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9142
cy += this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9143
indexTmp = this.
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9163
cy += this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9164
indexTmp = this.
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
9172
if (cutOverflow && cy + this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp) > data.Bottom)
9178
displayHeight = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9213
int indexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9216
rowHeight = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9223
indexTmp = this.
Rows
.GetNextRow(indexTmp,
9231
Debug.Assert((this.
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0 &&
9232
(this.
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9236
rowHeight = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9243
indexTmp = this.
Rows
.GetNextRow(indexTmp,
9283
Debug.Assert(index >= 0 && index < this.
Rows
.Count);
9284
Debug.Assert((this.
Rows
.GetRowState(index) & DataGridViewElementStates.Visible) != 0);
9288
int indexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9295
y += this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9296
indexTmp = this.
Rows
.GetNextRow(indexTmp,
9318
indexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
9324
Debug.Assert((this.
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0 &&
9325
(this.
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9333
y += this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9334
indexTmp = this.
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
9341
indexTmp = this.
Rows
.GetPreviousRow(this.displayedBandsInfo.FirstDisplayedScrollingRow,
9346
y -= this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9351
indexTmp = this.
Rows
.GetPreviousRow(indexTmp,
9563
int rowHeight = this.
Rows
.SharedRow(hti.row).GetHeight(hti.row);
9580
indexTmp = this.
Rows
.GetPreviousRow(hti.row, DataGridViewElementStates.Visible);
9726
int rowHeight = this.
Rows
.SharedRow(hti.row).GetHeight(hti.row);
9740
indexTmp = this.
Rows
.GetPreviousRow(hti.row,
9764
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
9854
dataGridViewCell = this.
Rows
[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.X]; // unshare the edited cell
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);
10053
this.
Rows
.InvalidateCachedRowsHeights();
10064
Debug.Assert(lo < this.
Rows
.Count);
10065
Debug.Assert(hi < this.
Rows
.Count);
10067
if (this.
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 0)
10078
if ((this.
Rows
.GetRowState(lo) & DataGridViewElementStates.Visible) == 0)
10080
lo = this.
Rows
.GetNextRow(lo, DataGridViewElementStates.Visible);
10090
if ((this.
Rows
.GetRowState(hi) & DataGridViewElementStates.Visible) == 0)
10092
hi = this.
Rows
.GetPreviousRow(hi, DataGridViewElementStates.Visible);
10103
if ((this.
Rows
.GetRowState(lo) & DataGridViewElementStates.Frozen) != 0)
10115
this.
Rows
.GetRowCount(DataGridViewElementStates.Visible,
10139
if ((this.
Rows
.GetRowState(hi) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen)
10151
else if (this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0)
10166
if ((this.
Rows
.GetRowState(i) & DataGridViewElementStates.Visible) == 0)
10218
return columnIndex >= this.Columns.Count || rowIndex >= this.
Rows
.Count || columnIndex == -1 || rowIndex == -1;
10223
return rowIndex >= this.
Rows
.Count || rowIndex == -1;
10337
int totalVisibleRowCount = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
10342
int totalVisibleHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
10343
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
10362
if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
10363
this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
10390
this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
10391
this.displayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
10442
if (this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) &&
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);
10769
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
10784
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
10799
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
10813
int rowHeight = this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
10814
this.
Rows
.SharedRow(rowIndex).CachedThickness = rowHeight;
10826
if (this.
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 1)
10942
if (this.
Rows
.Count > 0)
10953
DataGridViewRow newRow = this.
Rows
[this.newRowIndex];
10960
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
10962
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
10979
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
10981
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
11019
if (this.
Rows
.Count > 0 && dataGridViewColumn.CellType == null)
11080
if (this.
Rows
.Count > 0)
11088
DataGridViewRow newRow = this.
Rows
[this.newRowIndex];
11102
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
11104
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
11122
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
11124
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
11151
CorrectRowFrozenState(dataGridViewRow, rowState, this.
Rows
.Count);
11217
CorrectRowFrozenStates(dataGridViewRows, this.
Rows
.Count /*rowIndexInserted*/);
11518
for (int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
11520
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
11523
int rowHeight = this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
11524
this.
Rows
.SharedRow(rowIndex).CachedThickness = rowHeight;
11728
if (e.RowIndex >= this.
Rows
.Count)
11765
if (e.RowIndex >= this.
Rows
.Count)
11773
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
11810
rowDisplayed = (this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
11851
if (e.RowIndex >= this.
Rows
.Count)
11859
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
11887
if (e.RowIndex >= this.
Rows
.Count)
11895
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
11924
if (e.RowIndex >= this.
Rows
.Count)
11950
if (e.RowIndex >= this.
Rows
.Count)
11969
if (e.RowIndex >= this.
Rows
.Count)
11977
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
12000
if (e.RowIndex >= this.
Rows
.Count)
12022
Debug.Assert(rowIndex < this.
Rows
.Count && columnIndex < this.Columns.Count);
12023
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
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);
12156
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
12169
if (e.RowIndex >= this.
Rows
.Count)
12198
if (e.RowIndex >= this.
Rows
.Count)
12206
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
12230
if (e.RowIndex >= this.
Rows
.Count)
12238
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
12262
if (e.RowIndex >= this.
Rows
.Count)
12314
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
12475
if (hti.row >= this.
Rows
.Count)
12477
int lastVisibleRowIndex = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
12501
IsSharedCellSelected(this.
Rows
.SharedRow(hti.row).Cells[hti.col], hti.row) &&
12633
(this.Columns[hti.col].Selected || IsSharedCellSelected(this.
Rows
.SharedRow(hti.row).Cells[hti.col], hti.row)) &&
12728
((this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0))
12739
this.ptAnchorCell.Y > -1 && (this.
Rows
.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
12792
else if ((this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Selected) == 0)
12795
((this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0));
12812
(((this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0) ||
12813
IsSharedCellSelected(this.
Rows
.SharedRow(hti.row).Cells[hti.col], hti.row)) &&
12924
if (e.RowIndex >= this.
Rows
.Count)
12935
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
12958
if (e.RowIndex >= this.
Rows
.Count)
12969
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
12992
if (e.RowIndex >= this.
Rows
.Count)
13000
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
13060
if (e.RowIndex >= this.
Rows
.Count)
13068
DataGridViewRow dataGridViewRow = this.
Rows
[e.RowIndex];
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);
13453
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
13466
if (e.RowIndex >= this.
Rows
.Count)
13504
Debug.Assert(rowIndex < this.
Rows
.Count && columnIndex < this.Columns.Count);
13505
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
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)
13648
this.
Rows
.ClearInternal(false /*recreateNewRow*/);
13668
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Displayed);
13671
this.lstRows.Add(this.
Rows
[rowIndex]);
13675
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Displayed);
13738
if (this.Columns.Count != 0 && this.
Rows
.Count == 0)
14177
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
14906
(this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.ReadOnly) == 0 &&
15150
dataGridViewRow = this.
Rows
[index];
15269
Debug.Assert((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
15288
(this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.ReadOnly) == 0 &&
15331
Debug.Assert(!this.
Rows
[dataGridViewCell.RowIndex].ReadOnly);
15496
int totalVisibleHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
15497
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
15816
this.
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 1 /*forceCurrentCellSelection*/);
15906
if (this.
Rows
.Count > 0)
15917
DataGridViewRow newRow = this.
Rows
[this.newRowIndex];
15924
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
15926
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
15944
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
15946
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
16148
DataGridViewRow dataGridViewRow = this.
Rows
[this.ptCurrentCell.Y];
16206
DataGridViewRow dataGridViewRow = this.
Rows
[this.ptCurrentCell.Y];
16240
DataGridViewRow dataGridViewRow = this.
Rows
[this.ptCurrentCell.Y];
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)
16489
Debug.Assert(this.
Rows
[rowIndex].Resizable == DataGridViewTriState.True);
16586
this.ptMouseEnteredCell.Y >= -1 && this.ptMouseEnteredCell.Y < this.
Rows
.Count)
16825
if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.
Rows
.Count)
17021
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
17023
this.vertScrollBar.Value + this.
Rows
.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <=
17028
Debug.Assert(totalVisibleFrozenHeight == this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
17032
if (this.vertScrollBar.Value + this.
Rows
.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) >
17317
!this.
Rows
[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.X].ReadOnly) // Unshares the row
17558
this.
Rows
.ClearInternal(false /*recreateNewRow*/);
17564
for (int rowIndex = 0; rowIndex < this.
Rows
.Count; rowIndex++)
17566
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
17690
Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted < this.
Rows
.Count);
17701
int rowIndexPrevious = this.
Rows
.GetPreviousRow(rowIndexDeleted, DataGridViewElementStates.Visible);
17702
int rowIndexNext = this.
Rows
.GetNextRow(rowIndexDeleted, DataGridViewElementStates.Visible);
17706
Debug.Assert(this.newRowIndex == this.
Rows
.Count-1);
17707
if (rowIndexNext > -1 && rowIndexNext < this.
Rows
.Count - 1)
17969
this.
Rows
.Count == 0 &&
17993
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
18075
if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex < this.
Rows
.Count)
18120
if (rowIndex < this.
Rows
.Count &&
18130
DataGridViewRowEventArgs dgvre = new DataGridViewRowEventArgs(this.
Rows
[this.newRowIndex]);
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);
18188
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18257
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
18349
rowDisplayed = (this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
18361
(this.rowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.AutoSizeToFirstHeader && rowIndex != -1 && rowIndex == this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible)))
18426
((this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0))
18481
if (hti.row >= this.
Rows
.Count)
18483
int lastVisibleRowIndex = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
18505
else if ((this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Visible) == 0)
18517
(this.
Rows
.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
18578
else if ((this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Selected) == 0)
18581
((this.
Rows
.GetRowState(hti.row) & DataGridViewElementStates.Selected) != 0));
18823
if (rowIndex < this.
Rows
.Count && columnIndex < this.Columns.Count)
18835
Debug.Assert(rowIndex < this.
Rows
.Count && columnIndex < this.Columns.Count);
18836
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18958
SelectRowRange(this.
Rows
.GetNextRow(this.trackRowEdge, DataGridViewElementStates.Visible),
18964
SelectRowRange(this.
Rows
.GetNextRow(hti.row, DataGridViewElementStates.Visible),
18970
SelectRowRange(this.
Rows
.GetNextRow(this.trackRow, DataGridViewElementStates.Visible),
18977
this.
Rows
.GetPreviousRow(this.trackRowEdge, DataGridViewElementStates.Visible),
18984
this.
Rows
.GetPreviousRow(hti.row, DataGridViewElementStates.Visible),
18991
this.
Rows
.GetPreviousRow(this.trackRow, DataGridViewElementStates.Visible),
18997
SelectRowRange(this.
Rows
.GetNextRow(this.trackRow, DataGridViewElementStates.Visible),
19000
this.
Rows
.GetPreviousRow(this.trackRow, DataGridViewElementStates.Visible),
19007
this.
Rows
.GetPreviousRow(this.trackRow, DataGridViewElementStates.Visible),
19009
SelectRowRange(this.
Rows
.GetNextRow(this.trackRow, DataGridViewElementStates.Visible),
19108
newState = this.
Rows
.GetRowState(rowIndex);
19143
this.
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Displayed, false);
19149
bool rowDisplayed = (this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
19175
dataGridViewRow = this.
Rows
[rowIndex];
19187
if (rowVisible && this.
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 1)
19270
if (dataGridViewCell != null && rowIndex < this.
Rows
.Count && columnIndex < this.Columns.Count)
19272
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
19318
Debug.Assert(rowIndex < this.
Rows
.Count && columnIndex < this.Columns.Count);
19319
dataGridViewCell = this.
Rows
.SharedRow(rowIndex).Cells[columnIndex];
19399
int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
19405
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
19649
int rowIndex = this.
Rows
.GetPreviousRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible);
19694
rowIndexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19698
if ((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19714
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
19715
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19725
Debug.Assert((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Visible) != 0);
19731
if ((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19747
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
19748
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
19770
int visibleRowsHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Displayed);
20049
if (this.Columns.Count > 0 || this.
Rows
.Count > 0)
20119
indexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
20132
int rowHeight = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
20133
this.
Rows
.SharedRow(indexTmp).CachedThickness = rowHeight;
20137
rowBounds.Height = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
20144
indexTmpNext = this.
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
20148
dataGridViewRow = this.
Rows
.SharedRow(indexTmp);
20153
this.
Rows
.GetRowState(indexTmp),
20170
Debug.Assert((this.
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
20171
Debug.Assert((this.
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0);
20184
int rowHeight = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
20185
this.
Rows
.SharedRow(indexTmp).CachedThickness = rowHeight;
20189
rowBounds.Height = this.
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
20196
indexTmpNext = this.
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
20200
dataGridViewRow = this.
Rows
.SharedRow(indexTmp);
20205
this.
Rows
.GetRowState(indexTmp),
20318
DataGridViewRow newRow = this.
Rows
.SharedRow(this.newRowIndex);
20324
newRow = this.
Rows
[this.newRowIndex]; // unshare the 'new row'.
20368
this.Columns[this.ptCurrentCell.X].Width, this.
Rows
.SharedRow(this.ptCurrentCell.Y).GetHeight(this.ptCurrentCell.Y));
20380
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
20382
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
20482
if (rowIndex == this.newRowIndex || rowIndex >= this.
Rows
.Count)
20488
DataGridViewRowCancelEventArgs dgvrce = new DataGridViewRowCancelEventArgs(this.
Rows
[rowIndex]);
20492
DataGridViewRow dataGridViewRow = this.
Rows
[rowIndex];
20495
int dataGridRowsCount = this.
Rows
.Count;
20547
if (dataGridRowsCount != this.
Rows
.Count)
20560
this.
Rows
.RemoveAtInternal(rowIndex, false /*force*/);
20709
int lastVisibleRowIndex = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
20718
nextVisibleRowIndex = this.
Rows
.GetNextRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible);
21212
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21243
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21291
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21346
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21433
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21553
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
21554
int lastVisibleRowIndex = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
21629
(this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21645
(this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21661
(this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22008
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
22083
(this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22099
(this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22115
(this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22509
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
23254
nextScreenVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
23265
if ((this.
Rows
.GetRowState(nextScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23269
int firstDisplayedScrollingRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
23276
jumpRows = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible,
23295
nextScreenVisibleRowIndexTmp = this.
Rows
.GetNextRow(nextScreenVisibleRowIndex, DataGridViewElementStates.Visible);
23420
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23442
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23494
previousScreenVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
23506
if ((this.
Rows
.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23522
previousScreenVisibleRowIndexTmp = this.
Rows
.GetPreviousRow(previousScreenVisibleRowIndex, DataGridViewElementStates.Visible);
23530
if ((this.
Rows
.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23533
int firstDisplayedScrollingRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
23541
previousScreenVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
23659
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23681
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23748
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
24521
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) == 0)
24745
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
24753
previousVisibleRowIndex = this.
Rows
.GetPreviousRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible);
25158
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25185
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25225
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25271
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25344
if ((this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25503
Debug.Assert(this.newRowIndex == this.
Rows
.Count - 1);
25504
this.
Rows
.RemoveAtInternal(this.newRowIndex, false /*force*/);
25528
dataGridViewCurrentCell = this.
Rows
[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.X]; // unsharing the row before pushing the new value
25549
dataGridViewCurrentCell = this.
Rows
[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.X]; // unsharing the row before pushing the new value
25567
this.
Rows
.ClearInternal(false /*recreateNewRow*/);
25691
this.
Rows
.ClearInternal(true /*recreateNewRow*/);
25714
this.
Rows
.AddInternal(this.RowTemplateClone);
25718
this.
Rows
.AddCopiesInternal(0, rowsCount-1);
26043
for (int rowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
26045
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
26047
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
26067
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
26081
Debug.Assert(rowIndex < this.
Rows
.Count);
26083
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
26312
Debug.Assert(rowIndex >= 0 && rowIndex < this.
Rows
.Count);
26313
Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingRow < this.
Rows
.Count);
26315
Debug.Assert((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
26371
Debug.Assert(rowIndex >= 0 && rowIndex < this.
Rows
.Count);
26373
if ((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0)
26386
rowsToScroll = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible, rowIndex, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26394
int yRowBottomEdge = GetRowYFromIndex(rowIndex) + this.
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
26397
yRowBottomEdge -= this.
Rows
.SharedRow(firstDisplayedScrollingRow).GetHeight(firstDisplayedScrollingRow);
26401
firstDisplayedScrollingRow = this.
Rows
.GetNextRow(firstDisplayedScrollingRow, DataGridViewElementStates.Visible);
26426
Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
26433
int frozenRowsThickness = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
26456
(this.
Rows
.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
26483
int firstVisibleScrollingRow = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
26485
int newScrolledOffRowCount = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26504
deltaY -= this.
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26505
newFirstVisibleScrollingRow = this.
Rows
.GetNextRow(newFirstVisibleScrollingRow,
26520
deltaY = -this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26521
rows = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26534
newFirstVisibleScrollingRow = this.
Rows
.GetPreviousRow(newFirstVisibleScrollingRow,
26539
deltaY += this.
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26566
deltaY = this.
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26569
newFirstVisibleScrollingRow = this.
Rows
.GetNextRow(newFirstVisibleScrollingRow, DataGridViewElementStates.Visible);
26576
deltaY += this.
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26582
newFirstVisibleScrollingRow = this.
Rows
.GetPreviousRow(newFirstVisibleScrollingRow,
26586
deltaY = -this.
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26589
int scrollingRowTmp = this.
Rows
.GetPreviousRow(newFirstVisibleScrollingRow,
26594
deltaY -= this.
Rows
.SharedRow(scrollingRowTmp).GetHeight(scrollingRowTmp);
26616
scrollHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26617
rowCount = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, this.displayedBandsInfo.FirstDisplayedScrollingRow);
26622
scrollHeight = -this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26623
rowCount = -this.
Rows
.GetRowCount(DataGridViewElementStates.Visible, this.displayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26655
int rowIndex = 0, maxRowIndex = this.
Rows
.Count;
26658
dataGridViewRow = this.
Rows
[rowIndex]; //unsharing each row!
26673
int rowIndex = 0, maxRowIndex = this.
Rows
.Count;
26676
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
26712
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
26751
if (index >= this.
Rows
.Count)
26753
index -= this.
Rows
.Count;
26759
return this.
Rows
.SharedRow(index).Cells[columnIndex];
26784
return this.
Rows
.SharedRow(rowIndex).Cells[index];
26838
rowIndex >= this.
Rows
.Count)
26845
!IsSharedCellVisible(this.
Rows
.SharedRow(rowIndex).Cells[columnIndex], rowIndex))
26865
rowIndex < this.
Rows
.Count);
26906
currentCell = this.
Rows
.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX];
26909
currentCell = this.
Rows
[oldCurrentCellY].Cells[oldCurrentCellX]; // unsharing the current row
26979
if (rowIndex >= this.
Rows
.Count)
27016
currentCell = this.
Rows
[rowIndex].Cells[columnIndex]; // unsharing the row
27023
if (oldCurrentCellX < this.Columns.Count && oldCurrentCellY < this.
Rows
.Count)
27027
if (oldCurrentCellY != this.ptCurrentCell.Y && this.RowHeadersVisible && oldCurrentCellY < this.
Rows
.Count)
27104
currentCell = this.
Rows
.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX];
27107
currentCell = this.
Rows
[oldCurrentCellY].Cells[oldCurrentCellX]; // unsharing the current row
27164
if (oldCurrentCellX < this.Columns.Count && oldCurrentCellY < this.
Rows
.Count)
27168
if (this.RowHeadersVisible && oldCurrentCellY < this.
Rows
.Count)
27374
if ((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
27488
rowIndex < this.
Rows
.Count);
27491
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
27492
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
27495
DataGridViewCell dataGridViewCell = this.
Rows
[rowIndex].Cells[columnIndex];
27520
dataGridViewCellTmp = this.
Rows
[row].Cells[columnIndex];
27524
for (int row = rowIndex+1; row < this.
Rows
.Count; row++)
27526
dataGridViewCellTmp = this.
Rows
[row].Cells[columnIndex];
27533
this.
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false);
27536
dataGridViewCellTmp = this.
Rows
[rowIndex].Cells[column];
27542
dataGridViewCellTmp = this.
Rows
[rowIndex].Cells[column];
27593
Debug.Assert(rowIndex >= 0 && rowIndex < this.
Rows
.Count);
27595
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
27612
this.
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, true);
27617
this.
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false);
27638
if (rowIndex < 0 || rowIndex >= this.
Rows
.Count)
27644
DataGridViewRow dataGridViewRow = this.
Rows
.SharedRow(rowIndex);
27645
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
27648
DataGridViewCell dataGridViewCell = this.
Rows
[rowIndex].Cells[columnIndex];
27671
if (this.
Rows
.Count > DATAGRIDVIEW_bulkPaintThreshold)
27684
dataGridViewCellTmp = this.
Rows
[row].Cells[columnIndex];
27688
for (int row = rowIndex+1; row < this.
Rows
.Count; row++)
27690
dataGridViewCellTmp = this.
Rows
[row].Cells[columnIndex];
27714
this.
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, false);
27717
dataGridViewCellTmp = this.
Rows
[rowIndex].Cells[column];
27723
dataGridViewCellTmp = this.
Rows
[rowIndex].Cells[column];
27750
(this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
27878
if ((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
27881
((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
27887
if ((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0)
27890
((this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
28068
if (rowIndex < 0 || rowIndex >= this.
Rows
.Count)
28076
DataGridViewElementStates rowState = this.
Rows
.GetRowState(rowIndex);
28087
this.
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, true);
28094
this.
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, false);
28248
int visibleFrozenRows = this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28251
int rowVFIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28253
this.
Rows
.SetRowState(rowVFIndex, DataGridViewElementStates.Frozen, false);
28254
Debug.Assert(0 == this.
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
28285
this.
Rows
.Sort(comparer, direction == ListSortDirection.Ascending);
28309
int rowVIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28313
rowVIndex = this.
Rows
.GetNextRow(rowVIndex, DataGridViewElementStates.Visible);
28317
this.
Rows
.SetRowState(rowVIndex, DataGridViewElementStates.Frozen, true);
28486
int totalVisibleFrozenHeight = this.
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28493
if (this.vertScrollBar.Value + this.
Rows
.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <=
28513
int firstDisplayedScrollingRowHeight = this.
Rows
.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow);
28547
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28566
nextVisibleRowIndex = this.
Rows
.GetNextRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible);
28703
int firstVisibleRowIndex = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28724
previousVisibleRowIndex = this.
Rows
.GetPreviousRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible);
28731
int lastVisibleRowIndex = this.
Rows
.GetLastRow(DataGridViewElementStates.Visible);
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)
29038
this.
Rows
.InvalidateCachedRowsHeights();
29040
bool rowVisible = (rowIndex >= 0 && (this.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
29074
rowIndex = this.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
29158
rowIndexTmp = this.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
29162
if (((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29164
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed);
29166
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
29180
if (((this.
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29182
this.
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed);
29184
rowIndexTmp = this.
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
29213
this.ptMouseEnteredCell.Y < this.
Rows
.Count)
29237
this.ptMouseEnteredCell.Y < this.
Rows
.Count)
29315
this.
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29324
this.
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29340
this.
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29349
this.
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29362
this.
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29379
this.
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29402
this.
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29420
this.
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29435
this.
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29455
this.
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29495
this.
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29507
this.
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29534
this.
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29549
this.
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29569
this.
Rows
.GetNextRow(anchorRowIndex, DataGridViewElementStates.Visible),
29606
this.
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29621
this.
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29647
this.
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29662
this.
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29681
this.
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29701
this.
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29709
this.
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29725
this.
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29733
this.
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29872
dataGridViewCell = this.
Rows
.SharedRow(hti.row).Cells[hti.col];
29880
dataGridViewCell = this.
Rows
.SharedRow(hti.row).HeaderCell;
winforms\Managed\System\WinForms\DataGridViewRow.cs (19)
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)))
1478
if (this.DataGridView == null || this.DataGridView.
Rows
.SharedRow(rowIndex).Index != -1)
1488
return this.DataGridView.
Rows
.GetRowState(rowIndex);
1500
this.DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
1501
this.DataGridView.
Rows
.InvalidateCachedRowsHeight(elementState);
1526
DataGridViewRow sharedRow = dataGridView.
Rows
.SharedRow(rowIndex);
1567
sharedRow = dataGridView.
Rows
.SharedRow(rowIndex);
1938
int visibleRowIndex = this.owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, this.owner.Index);
1957
int visibleRowIndex = this.owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, this.owner.Index);
1963
if (this.owner.DataGridView.
Rows
[0].Visible == false)
2241
if (this.owner.Index != this.owner.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
2243
int nextVisibleRow = this.owner.DataGridView.
Rows
.GetNextRow(this.owner.Index, DataGridViewElementStates.Visible);
2244
int actualDisplayIndex = this.owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, nextVisibleRow);
2260
if (this.owner.Index != this.owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
2262
int previousVisibleRow = this.owner.DataGridView.
Rows
.GetPreviousRow(this.owner.Index, DataGridViewElementStates.Visible);
2263
int actualDisplayIndex = this.owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, previousVisibleRow);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (9)
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))
1364
if (this.Owner.OwningRow.Index == this.Owner.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
1370
int nextVisibleRow = this.Owner.DataGridView.
Rows
.GetNextRow(this.Owner.OwningRow.Index, DataGridViewElementStates.Visible);
1371
int actualDisplayIndex = this.Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, nextVisibleRow);
1393
if (this.Owner.OwningRow.Index == this.Owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
1408
int previousVisibleRow = this.Owner.DataGridView.
Rows
.GetPreviousRow(this.Owner.OwningRow.Index, DataGridViewElementStates.Visible);
1409
int actualDisplayIndex = this.Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, previousVisibleRow);
winforms\Managed\System\WinForms\DataGridViewRowPostPaintEventArgs.cs (10)
158
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
162
this.dataGridView.
Rows
.SharedRow(rowIndex).DrawFocus(this.graphics,
174
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
178
this.dataGridView.
Rows
.SharedRow(rowIndex).PaintCells(this.graphics,
191
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
200
this.dataGridView.
Rows
.SharedRow(rowIndex).PaintCells(this.graphics,
213
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
217
this.dataGridView.
Rows
.SharedRow(rowIndex).PaintCells(this.graphics,
241
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
245
this.dataGridView.
Rows
.SharedRow(rowIndex).PaintHeader(this.graphics,
winforms\Managed\System\WinForms\DataGridViewRowPrePaintEventArgs.cs (10)
177
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
181
this.dataGridView.
Rows
.SharedRow(this.rowIndex).DrawFocus(this.graphics,
193
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
197
this.dataGridView.
Rows
.SharedRow(this.rowIndex).PaintCells(this.graphics,
210
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
219
this.dataGridView.
Rows
.SharedRow(this.rowIndex).PaintCells(this.graphics,
232
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
236
this.dataGridView.
Rows
.SharedRow(this.rowIndex).PaintCells(this.graphics,
260
if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.
Rows
.Count)
264
this.dataGridView.
Rows
.SharedRow(this.rowIndex).PaintHeader(this.graphics,
winforms\Managed\System\WinForms\DataGridViewTextBoxColumn.cs (1)
72
DataGridViewRowCollection dataGridViewRows = this.DataGridView.
Rows
;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (3)
644
this.Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 0)
648
DataGridViewRow row = this.Owner.DataGridView.
Rows
[this.Owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible)];
System.WorkflowServices (28)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (28)
96
this.parametersGrid.
Rows
.Add(this.ParameterTemplateRowName, null, null);
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];
224
DataGridViewCell currentCell = this.parametersGrid.
Rows
[combo.EditingControlRowIndex].Cells[this.typeColumn.Index];
294
Fx.Assert(currentRowIndex < (this.parametersGrid.
Rows
.Count - 2), "cant move down the template row or the one above it");
296
this.parametersGrid.
Rows
.Remove(currentRow);
297
this.parametersGrid.
Rows
.Insert(currentRowIndex + 1, currentRow);
309
Fx.Assert(currentRowIndex != (this.parametersGrid.
Rows
.Count - 1), "cant move up the template row");
311
this.parametersGrid.
Rows
.Remove(currentRow);
312
this.parametersGrid.
Rows
.Insert(currentRowIndex - 1, currentRow);
372
if (typeof(void).ToString().Equals(e.FormattedValue) && !(this.parametersGrid.
Rows
[e.RowIndex].Cells[this.nameColumn.Index].Value.Equals(SR2.GetString(SR2.ReturnValueString))))
413
if (!this.parametersGrid.
Rows
[this.parametersGrid.RowCount - 1].Cells[this.nameColumn.Index].Value.Equals(this.ParameterTemplateRowName))
415
DataGridViewRow editedRow = this.parametersGrid.
Rows
[e.RowIndex];
419
this.parametersGrid.
Rows
.Add(this.ParameterTemplateRowName, null, null);
423
DataGridViewCell currentCell = this.parametersGrid.
Rows
[e.RowIndex].Cells[e.ColumnIndex];
526
this.parametersGrid.
Rows
.Add(new object[] { paramName, paramType, direction });
531
this.parametersGrid.
Rows
.Insert(0, new object[] { SR2.GetString(SR2.ReturnValueString), returnType, SR2.GetString(SR2.ParameterDirectionOut) });
532
DataGridViewRow returnValueRow = this.parametersGrid.
Rows
[0];
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");
590
this.parametersGrid.
Rows
.Remove(currentRow);
702
foreach (DataGridViewRow row in this.parametersGrid.
Rows
)
760
foreach (DataGridViewRow row in this.parametersGrid.
Rows
)
773
if (parameterName.Equals(this.ParameterTemplateRowName) && (e.RowIndex == this.parametersGrid.
Rows
.Count - 1))