957 references to Rows
PresentationUI (13)
MS\Internal\Documents\RMPublishingDialog.cs (1)
242
foreach (DataGridViewRow row in rightsTable.
Rows
)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (12)
133
Rows
.Insert(0, CreateDataGridViewRow(user, isViewerOwner));
139
rowIndex =
Rows
.Add(CreateDataGridViewRow(user, isViewerOwner));
147
UpdateAllowOwner(
Rows
[rowIndex]);
154
UpdateRowFromEveryone(
Rows
[_everyoneRowIndex],
Rows
[rowIndex]);
184
this.
Rows
.Remove(row);
290
foreach (DataGridViewRow row in
Rows
)
500
if ((e != null) && (e.RowIndex > 0) && (e.RowIndex <
Rows
.Count) &&
503
DataGridViewDisableCheckBoxCell cell =
Rows
[e.RowIndex].Cells[e.ColumnIndex] as DataGridViewDisableCheckBoxCell;
624
for (int rowIndex = _firstNonOwnerRow; rowIndex <
Rows
.Count; rowIndex++)
626
DataGridViewRow currentRow =
Rows
[rowIndex];
786
everyoneRow =
Rows
[_everyoneRowIndex];
System.Windows.Forms (937)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (12)
80
if (index < owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible))
82
int actualRowIndex = owner.
Rows
.DisplayIndexToRowIndex(index);
83
return owner.
Rows
[actualRowIndex].AccessibilityObject;
86
index -= owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
118
int childCount = owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
166
return owner.
Rows
[hti.RowIndex].Cells[hti.ColumnIndex].AccessibilityObject;
179
return owner.
Rows
[hti.RowIndex].HeaderCell.AccessibilityObject;
280
int rowIndex = owner.
Rows
.DisplayIndexToRowIndex(i);
281
result[i] = owner.
Rows
[rowIndex].HeaderCell.AccessibilityObject;
321
row = owner.
Rows
.DisplayIndexToRowIndex(row);
323
return owner.
Rows
[row].Cells[column].AccessibilityObject;
333
return this.TryGetOwnerAs(out DataGridView? owner) ? owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible) : base.RowCount;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (46)
1714
Debug.Assert(_ptCurrentCell.Y <
Rows
.Count);
1715
DataGridViewRow dataGridViewRow =
Rows
[_ptCurrentCell.Y]; // un-sharing row
1744
if (!Columns[value.ColumnIndex].Visible || (
Rows
.GetRowState(value.RowIndex) & DataGridViewElementStates.Visible) == 0)
1782
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y <
Rows
.Count);
1783
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(_ptCurrentCell.Y);
1803
bool previousVisibleRowExists = (
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible) != -1);
1821
bool nextVisibleRowExists = (
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible) != -1);
1855
Debug.Assert(_ptCurrentCell.Y <
Rows
.Count);
1857
return
Rows
[_ptCurrentCell.Y];
2288
return
Rows
[firstDisplayedCellAddress.Y].Cells[firstDisplayedCellAddress.X]; // un-shares the row of first displayed cell
2309
&& firstDisplayedCell.RowIndex <
Rows
.Count
2320
if (!
Rows
[firstDisplayedCell.RowIndex].Frozen)
2340
Y =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
2425
int firstDisplayedRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2428
if ((
Rows
.GetRowState(firstDisplayedRowIndex) & DataGridViewElementStates.Frozen) == 0
2532
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value,
Rows
.Count);
2534
if ((
Rows
.GetRowState(value) & DataGridViewElementStates.Visible) == 0)
2539
if ((
Rows
.GetRowState(value) & DataGridViewElementStates.Frozen) != 0)
2555
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2587
int rowsToScroll =
Rows
.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, value);
2926
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2937
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2947
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
3101
int rowCount =
Rows
.Count;
3121
int rowCount =
Rows
.Count;
3124
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.ReadOnly) == 0);
3177
get =>
Rows
.Count;
3187
if (value ==
Rows
.Count)
3195
Rows
.Clear();
3197
else if (value <
Rows
.Count)
3200
while (value <
Rows
.Count)
3202
int currentRowCount =
Rows
.Count;
3203
Rows
.RemoveAt(currentRowCount - (AllowUserToAddRowsInternal ? 2 : 1));
3204
if (
Rows
.Count >= currentRowCount)
3221
int rowsToAdd = value -
Rows
.Count;
3224
Rows
.Add(rowsToAdd);
3596
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
3647
foreach (DataGridViewRow dataGridViewRow in
Rows
) // un-shares all rows!
3666
DataGridViewRow dataGridViewRow =
Rows
[rowIndex]; // un-shares the selected row
3728
strc.Add(
Rows
[rowIndex]); // un-shares the selected row
4013
DataGridViewRow row =
Rows
[rowIndex];
4018
DataGridViewRow row =
Rows
[rowIndex];
4029
DataGridViewRow row =
Rows
[rowIndex];
4034
DataGridViewRow row =
Rows
[rowIndex];
4093
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
4154
&&
Rows
.GetFirstRow(DataGridViewElementStates.Visible) != -1;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (14)
339
int dataGridViewRowsCount = _owner.
Rows
.Count;
494
&& CurrencyManager.List.Count == (_owner.AllowUserToAddRowsInternal ? _owner.
Rows
.Count - 1 : _owner.
Rows
.Count))
596
if (_owner.NewRowIndex == -1 || e.NewIndex != _owner.
Rows
.Count)
598
_owner.
Rows
.InsertInternal(e.NewIndex, _owner.RowTemplateClone, force: true);
610
_owner.
Rows
.RemoveAtInternal(e.NewIndex, force: true);
663
if (_owner.
Rows
.Count > 0
689
if (_owner.
Rows
.Count == (_owner.AllowUserToAddRowsInternal ? 1 : 0))
763
int result = _owner.
Rows
.Count;
764
if (_owner.AllowUserToAddRowsInternal && _owner.
Rows
.Count > 0)
1244
else if (rowIndex < _owner.
Rows
.Count)
1255
if ((_owner.
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
1258
_owner.
Rows
[rowIndex].Visible = true;
1269
&& rowIndex < _owner.
Rows
.Count
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (727)
27
if (cellAddress.Y < 0 || cellAddress.Y >=
Rows
.Count)
32
int visibleRowIndex =
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, cellAddress.Y);
73
Rows
.AddInternal(newRow: true, values: null);
74
NewRowIndex =
Rows
.Count - 1;
79
DataGridViewRowEventArgs dgvRowEvent = new(
Rows
[NewRowIndex]);
300
Debug.Assert(rowIndex <
Rows
.Count);
314
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
370
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
380
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
390
dataGridViewCell =
Rows
.SharedRow(rowIndex).HeaderCell;
403
Rows
.SharedRow(rowIndex).GetHeightInfo(rowIndex, out int height, out int minimumHeight);
418
Rows
[rowIndex].Thickness = preferredThickness; // un-sharing the resized row
450
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
452
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
458
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
467
dataGridViewCell =
Rows
.SharedRow(rowIndex).HeaderCell;
480
if (
Rows
.SharedRow(rowIndex).Height < preferredHeight)
482
Rows
[rowIndex].Height = preferredHeight; // un-sharing the row to be resized
497
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
501
rowIndex =
Rows
.GetNextRow(rowIndex,
511
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
929
int totalVisibleRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible);
930
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
931
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
936
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
937
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
1305
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1307
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1323
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
1327
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1328
rowIndex =
Rows
.GetNextRow(rowIndex,
1342
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1343
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
1351
int rowAboveFirstVisibleScrollingRow =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
1363
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1364
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
1380
if (Columns.Count == 0 &&
Rows
.Count == 0)
1386
&& (
Rows
.GetFirstRow(DataGridViewElementStates.Visible) == -1
1398
allCellsSelected = _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1405
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1407
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1409
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1432
allCellsSelected = _selectedBandIndexes.Count *
Rows
.Count + _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1444
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1446
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1448
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1468
allCellsSelected = _selectedBandIndexes.Count * Columns.Count + _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1475
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1477
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1480
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
1481
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
1483
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1953
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
2026
rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2030
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex,
Rows
.SharedRow(rowIndex).GetHeight(rowIndex)))
2031
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width);
2040
rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2043
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2050
rowIndex =
Rows
.GetNextRow(
2060
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2067
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
2076
for (rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2078
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
2081
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex,
Rows
.SharedRow(rowIndex).GetHeight(rowIndex)))
2082
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width);
2128
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
2147
&& rowIndex !=
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
2154
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2188
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2192
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp,
Rows
.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)))
2193
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width);
2202
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2205
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndexTmp);
2212
rowIndexTmp =
Rows
.GetNextRow(
2222
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndexTmp);
2229
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
2238
for (rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2240
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible))
2243
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp,
Rows
.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)))
2244
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width);
2276
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
2294
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2313
Rows
[rowIndex].ThicknessInternal = preferredThickness; // un-sharing the resized row
2320
Rows
[rowIndex].ThicknessInternal = preferredThickness; // un-sharing the resized row
2324
Rows
[rowIndex].Thickness = preferredThickness; // un-sharing the resized row
2405
int rowIndex =
Rows
.GetNextRow(rowIndexStart - 1, DataGridViewElementStates.Visible);
2413
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
2579
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y <
Rows
.Count);
2773
clip.Y = topEdge +
Rows
.SharedRow(index).GetMinimumHeight(index) - mouseBarOffset - 1;
3132
Debug.Assert((AllowUserToAddRowsInternal &&
Rows
.Count == 1) || (!AllowUserToAddRowsInternal &&
Rows
.Count == 0));
3134
if (
Rows
.Count > 0)
3138
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
3209
Debug.Assert(
Rows
.GetFirstRow(DataGridViewElementStates.Visible) == 0);
3482
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException,
Rows
.Count);
3491
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException,
Rows
.Count);
4148
if (rowIndex >=
Rows
.Count)
4154
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
4172
if (rowIndex > -1 && (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
4271
int indexTmp =
Rows
.Count;
4282
DataGridViewElementStates rowState =
Rows
.GetRowState(indexTmp);
4290
indexTmp =
Rows
.GetPreviousRow(
4298
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
4308
indexTmp =
Rows
.GetPreviousRow(
4314
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
4327
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
4333
height +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
4334
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
4346
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
4347
return
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) +
4348
Rows
.SharedRow(lastVisibleRowIndex).GetHeight(lastVisibleRowIndex);
4536
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
4537
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
4771
int nRows =
Rows
.Count;
4789
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
4797
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
4833
&& ((
Rows
.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Frozen) != 0
4834
|| (
Rows
.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Visible) == 0))
4841
if ((
Rows
.GetRowState(i) & DataGridViewElementStates.Visible) != 0)
4843
cy +=
Rows
.SharedRow(i).GetHeight(i);
4858
if ((
Rows
.GetRowState(i) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.Visible)) == DataGridViewElementStates.Visible)
4860
int height =
Rows
.SharedRow(i).GetHeight(i);
5220
Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <=
Rows
.Count);
5222
int previousRowIndex =
Rows
.GetPreviousRow(
5228
&& (
Rows
.GetRowState(previousRowIndex) & DataGridViewElementStates.Frozen) == 0
5235
int nextRowIndex =
Rows
.GetNextRow(
5241
&& (
Rows
.GetRowState(nextRowIndex) & DataGridViewElementStates.Frozen) != 0
5254
int rowIndexTmp =
Rows
.GetPreviousRow(rowIndexInserted, DataGridViewElementStates.Visible);
5257
previousRowFrozen = (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5261
rowIndexTmp =
Rows
.GetNextRow(rowIndexInserted - 1, DataGridViewElementStates.Visible);
5265
nextRowFrozen = (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5288
if (((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) != 0 && !frozenStateChanging)
5289
|| ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0 && frozenStateChanging))
5292
rowIndexTmp =
Rows
.GetPreviousRow(rowIndex,
5296
int dataGridViewRowFirst =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
5305
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, true);
5306
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp,
5314
rowIndexTmp =
Rows
.GetNextRow(rowIndex,
5322
rowIndexTmp =
Rows
.GetNextRow(dataGridViewRowLast,
5338
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, false);
5339
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp,
5348
int rowsCount =
Rows
.Count;
5351
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
5374
int rowsCount =
Rows
.Count;
5377
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
5449
Debug.Assert(
Rows
.Count > 1);
5452
DataGridViewRowCancelEventArgs dgvrce = new(
Rows
[NewRowIndex]);
5460
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
5461
DataGridViewRow dataGridViewRow =
Rows
[NewRowIndex];
5462
Rows
.RemoveAtInternal(NewRowIndex, force: false);
5472
NewRowIndex =
Rows
.Count - 1;
5473
Debug.Assert((
Rows
.GetRowState(NewRowIndex) & DataGridViewElementStates.Visible) != 0);
5476
OnDefaultValuesNeeded(new DataGridViewRowEventArgs(
Rows
[NewRowIndex]));
5803
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5814
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5828
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5875
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5883
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5891
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5899
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5907
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
6323
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(_trackRow);
6335
dataGridViewRow =
Rows
[_trackRow]; // Un-sharing row
6391
Debug.Assert(rowIndex <
Rows
.Count);
6392
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
6393
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0);
6401
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6433
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6435
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
6438
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6446
rowIndexTmp =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6447
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6449
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6450
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6459
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6462
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6464
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6465
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6470
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6474
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6476
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
6479
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6484
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6486
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6487
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6496
int firstDisplayedFrozenRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6499
?
Rows
.GetNextRow(
6509
?
Rows
.GetNextRow(
6521
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6527
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6528
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6534
&& rowIndexTmp <
Rows
.Count
6540
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6546
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6547
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6558
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible, DisplayedBandsInfo.OldNumDisplayedScrollingRows - 1);
6561
rowIndexTmp =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
6569
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6571
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6574
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible);
6580
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6583
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, DisplayedBandsInfo.OldNumDisplayedFrozenRows - 1);
6586
rowIndexTmp =
Rows
.GetLastRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6594
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6596
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6599
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible);
6606
for (rowIndexTmp = 0; rowIndexTmp <
Rows
.Count; rowIndexTmp++)
6608
DataGridViewElementStates rowStateDbg =
Rows
.GetRowState(rowIndexTmp);
6620
if (!ColumnHeadersVisible &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 0)
6867
return cellCount + _selectedBandIndexes.Count *
Rows
.Count;
6904
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
6906
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
6925
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
6942
return
Rows
.Count * Columns.Count;
6951
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
6953
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
6954
if (!visibleRequired || (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0)
6981
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
7058
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
7103
Debug.Assert(rowIndex >= -1 && rowIndex <
Rows
.Count);
7106
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
7148
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) == 0)
7155
includeColumnHeaders = (
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Selected) == -1);
7287
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7289
int nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7300
cellContent =
Rows
.SharedRow(rowIndex)
7318
cellContent =
Rows
.SharedRow(rowIndex)
7337
cellContent =
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(
7357
cellContent =
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(
7374
cellContent =
Rows
.SharedRow(rowIndex)
7392
cellContent =
Rows
.SharedRow(rowIndex)
7412
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7450
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
7581
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
7595
cellContent =
Rows
.SharedRow(rowIndex)
7613
cellContent =
Rows
.SharedRow(rowIndex)
7632
cellContent =
Rows
.SharedRow(rowIndex)
7654
cellContent =
Rows
.SharedRow(rowIndex)
7673
cellContent =
Rows
.SharedRow(rowIndex)
7691
cellContent =
Rows
.SharedRow(rowIndex)
7711
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
7738
selectedVisibleRowExists =
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) != 0;
7744
selectedVisibleCellExists = selectedVisibleColumnExists &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) != 0;
7819
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0)
7838
firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
7839
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
8016
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
8041
cellContent =
Rows
.SharedRow(rowIndex)
8061
cellContent =
Rows
.SharedRow(rowIndex)
8081
cellContent =
Rows
.SharedRow(rowIndex)
8111
cellContent =
Rows
.SharedRow(rowIndex)
8562
int visibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
8563
int frozenVisibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
8595
&& (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0
8597
&& (
Rows
.GetRowState(_trackRowEdge) & DataGridViewElementStates.Frozen) != 0
8599
&& (
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Frozen) == 0)
8603
int firstUnfrozenRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
8633
&& ((
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0
8634
|| (_trackRowEdge != -1 && (
Rows
.GetRowState(_trackRowEdge) & DataGridViewElementStates.Frozen) == 0))
8652
if (VerticalScrollingOffset +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
8696
int firstRowIndex = hti._row >= 0 ? hti._row :
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
8814
if (((_ptAnchorCell.Y != -1 && (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0)
8815
|| (_ptCurrentCell.Y != -1 && (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0))
8837
if (VerticalScrollingOffset +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
9010
int preferredHeight = Math.Min(minimumHeight +
Rows
.GetRowsHeight(DataGridViewElementStates.Visible), proposedConstraints.Height);
9023
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9030
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
9032
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) == 0)
9041
for (indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9055
cy +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9056
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9076
cy +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9077
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
9084
int displayHeight = cutOverflow && cy +
Rows
.SharedRow(indexTmp).GetHeight(indexTmp) > data.Bottom
9086
:
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9119
int indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9122
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9130
indexTmp =
Rows
.GetNextRow(indexTmp,
9138
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0
9139
&& (
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9143
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9151
indexTmp =
Rows
.GetNextRow(indexTmp,
9195
Debug.Assert(index >= 0 && index <
Rows
.Count);
9196
Debug.Assert((
Rows
.GetRowState(index) & DataGridViewElementStates.Visible) != 0);
9200
int indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9208
y +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9209
indexTmp =
Rows
.GetNextRow(indexTmp,
9231
indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
9237
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0
9238
&& (
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9247
y +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9248
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
9255
indexTmp =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow,
9260
y -=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9266
indexTmp =
Rows
.GetPreviousRow(indexTmp,
9424
int rowHeight =
Rows
.SharedRow(hti._row).GetHeight(hti._row);
9441
indexTmp =
Rows
.GetPreviousRow(hti._row, DataGridViewElementStates.Visible);
9566
int rowHeight =
Rows
.SharedRow(hti._row).GetHeight(hti._row);
9580
indexTmp =
Rows
.GetPreviousRow(hti._row,
9605
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
9694
dataGridViewCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; // un-share the edited cell
9782
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9849
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9856
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
9870
Rows
.InvalidateCachedRowsHeights();
9885
Debug.Assert(lo <
Rows
.Count);
9886
Debug.Assert(hi <
Rows
.Count);
9888
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 0)
9899
if ((
Rows
.GetRowState(lo) & DataGridViewElementStates.Visible) == 0)
9901
lo =
Rows
.GetNextRow(lo, DataGridViewElementStates.Visible);
9911
if ((
Rows
.GetRowState(hi) & DataGridViewElementStates.Visible) == 0)
9913
hi =
Rows
.GetPreviousRow(hi, DataGridViewElementStates.Visible);
9924
if ((
Rows
.GetRowState(lo) & DataGridViewElementStates.Frozen) != 0)
9936
&&
Rows
.GetRowCount(
9961
if ((
Rows
.GetRowState(hi) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen)
9973
else if (
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0)
9988
if ((
Rows
.GetRowState(i) & DataGridViewElementStates.Visible) == 0)
10041
return columnIndex >= Columns.Count || rowIndex >=
Rows
.Count || columnIndex == -1 || rowIndex == -1;
10046
return rowIndex >=
Rows
.Count || rowIndex == -1;
10157
int totalVisibleRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible);
10162
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
10163
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
10183
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10184
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10212
&& DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10213
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10269
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10388
&& (includeNewRow || !AllowUserToAddRowsInternal || firstDisplayedCellAddress.Y !=
Rows
.Count - 1))
10589
Debug.Assert(rowIndex ==
Rows
.Count - 1);
10593
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
10596
DataGridViewRow dataGridViewRowDebug =
Rows
.SharedRow(rowIndex);
10607
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10623
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
10637
int rowHeight =
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
10638
Rows
.SharedRow(rowIndex).CachedThickness = rowHeight;
10655
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 1)
10785
if (
Rows
.Count > 0)
10797
_ =
Rows
[NewRowIndex];
10804
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10806
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10826
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10828
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10866
if (
Rows
.Count > 0 && dataGridViewColumn.CellType is null)
10933
if (
Rows
.Count > 0)
10942
_ =
Rows
[NewRowIndex];
10956
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10958
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10977
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10979
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
11004
CorrectRowFrozenState(dataGridViewRow, rowState,
Rows
.Count);
11073
CorrectRowFrozenStates(dataGridViewRows, rowIndexInserted:
Rows
.Count);
11329
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
11331
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
11334
int rowHeight =
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
11335
Rows
.SharedRow(rowIndex).CachedThickness = rowHeight;
11509
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(e.RowIndex,
Rows
.Count, "e.RowIndex");
11550
_ =
Rows
[e.RowIndex];
11583
rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
11634
_ =
Rows
[e.RowIndex];
11659
_ =
Rows
[e.RowIndex];
11704
_ =
Rows
[e.RowIndex];
11732
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
11733
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
11820
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
11821
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
11851
_ =
Rows
[e.RowIndex];
11872
_ =
Rows
[e.RowIndex];
11936
_ =
Rows
[e.RowIndex];
12103
if (hti._row >=
Rows
.Count)
12105
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
12129
&& IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row)
12284
&& (Columns[hti._col].Selected || IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row))
12395
if (isControlDown && ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0))
12407
&& _ptAnchorCell.Y > -1 && (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
12463
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0)
12466
((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0));
12489
&& (((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)
12490
|| IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row))
12617
_ =
Rows
[e.RowIndex];
12640
_ =
Rows
[e.RowIndex];
12660
_ =
Rows
[e.RowIndex];
12718
_ =
Rows
[e.RowIndex];
13056
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
13057
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
13102
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
13103
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
13196
Rows
.ClearInternal(recreateNewRow: false);
13213
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Displayed);
13216
_lstRows.Add(
Rows
[rowIndex]);
13220
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Displayed);
13277
if (Columns.Count != 0 &&
Rows
.Count == 0)
13696
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
14443
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.ReadOnly) == 0
14664
dataGridViewRow =
Rows
[index];
14785
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
14806
&& (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.ReadOnly) == 0
14850
Debug.Assert(!
Rows
[dataGridViewCell.RowIndex].ReadOnly);
14981
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
14982
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
15317
forceCurrentCellSelection:
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 1);
15420
if (
Rows
.Count > 0)
15432
_ =
Rows
[NewRowIndex];
15439
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
15441
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
15460
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
15462
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
15683
_ =
Rows
[_ptCurrentCell.Y];
15742
_ =
Rows
[_ptCurrentCell.Y];
15776
_ =
Rows
[_ptCurrentCell.Y];
15897
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
15918
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
15929
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
15986
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16036
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16048
if (rowIndex <
Rows
.Count)
16058
Debug.Assert(
Rows
[rowIndex].Resizable == DataGridViewTriState.True);
16160
&& _ptMouseEnteredCell.Y >= -1 && _ptMouseEnteredCell.Y <
Rows
.Count)
16382
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16581
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
16583
&& _vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16589
Debug.Assert(totalVisibleFrozenHeight ==
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
16594
if (_vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16861
&& !
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X].ReadOnly) // Un-shares the row
17104
Rows
.ClearInternal(recreateNewRow: false);
17110
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
17112
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
17237
Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted <
Rows
.Count);
17239
if (rowIndexDeleted >= 0 && rowIndexDeleted <
Rows
.Count)
17241
foreach (DataGridViewCell cell in
Rows
[rowIndexDeleted].Cells)
17256
int rowIndexPrevious =
Rows
.GetPreviousRow(rowIndexDeleted, DataGridViewElementStates.Visible);
17257
int rowIndexNext =
Rows
.GetNextRow(rowIndexDeleted, DataGridViewElementStates.Visible);
17261
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
17262
newY = rowIndexNext > -1 && rowIndexNext <
Rows
.Count - 1 ? rowIndexNext - 1 : rowIndexPrevious;
17535
&&
Rows
.Count == 0
17560
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
17614
if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex <
Rows
.Count)
17659
if (rowIndex <
Rows
.Count && columnIndex < Columns.Count)
17668
DataGridViewRowEventArgs dgvre = new(
Rows
[NewRowIndex]);
17700
if (calledAddNewOnTheDataConnection && rowIndex >
Rows
.Count - 1)
17703
rowIndex = Math.Min(rowIndex,
Rows
.Count - 1);
17725
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
17726
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
17780
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
17868
rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
17886
&& rowIndex ==
Rows
.GetFirstRow(DataGridViewElementStates.Visible)))
17940
if (isControlDown && ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0))
18008
if (hti._row >=
Rows
.Count)
18010
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
18035
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Visible) == 0)
18048
&& (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
18113
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0)
18116
((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0));
18320
if (rowIndex <
Rows
.Count && columnIndex < Columns.Count)
18332
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
18333
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18420
SelectRowRange(
Rows
.GetNextRow(_trackRowEdge, DataGridViewElementStates.Visible),
18426
SelectRowRange(
Rows
.GetNextRow(hti._row, DataGridViewElementStates.Visible),
18432
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18439
Rows
.GetPreviousRow(_trackRowEdge, DataGridViewElementStates.Visible),
18446
Rows
.GetPreviousRow(hti._row, DataGridViewElementStates.Visible),
18453
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18459
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18462
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18469
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18471
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18562
newState =
Rows
.GetRowState(rowIndex);
18605
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Displayed, false);
18616
bool rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
18642
dataGridViewRow =
Rows
[rowIndex];
18656
if (rowVisible &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 1)
18732
if (dataGridViewCell is not null && rowIndex <
Rows
.Count && columnIndex < Columns.Count)
18734
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18779
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
18780
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18858
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
18864
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
19083
int rowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
19132
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19136
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19143
Debug.Assert((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0);
19144
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19152
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
19153
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19163
Debug.Assert((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Visible) != 0);
19169
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19176
Debug.Assert((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0);
19177
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
19185
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
19186
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
19207
int visibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Displayed);
19496
if (Columns.Count > 0 ||
Rows
.Count > 0)
19563
indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19577
int rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19578
Rows
.SharedRow(indexTmp).CachedThickness = rowHeight;
19582
rowBounds.Height =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19590
indexTmpNext =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19594
dataGridViewRow =
Rows
.SharedRow(indexTmp);
19599
Rows
.GetRowState(indexTmp),
19618
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
19619
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0);
19633
int rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19634
Rows
.SharedRow(indexTmp).CachedThickness = rowHeight;
19638
rowBounds.Height =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19646
indexTmpNext =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
19650
dataGridViewRow =
Rows
.SharedRow(indexTmp);
19655
Rows
.GetRowState(indexTmp),
19769
DataGridViewRow newRow =
Rows
.SharedRow(NewRowIndex);
19775
newRow =
Rows
[NewRowIndex]; // un-share the 'new row'.
19821
Columns[_ptCurrentCell.X].Width,
Rows
.SharedRow(_ptCurrentCell.Y).GetHeight(_ptCurrentCell.Y));
19835
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
19837
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19946
if (rowIndex == NewRowIndex || rowIndex >=
Rows
.Count)
19952
DataGridViewRowCancelEventArgs dgvrce = new(
Rows
[rowIndex]);
19956
DataGridViewRow dataGridViewRow =
Rows
[rowIndex];
19959
int dataGridRowsCount =
Rows
.Count;
19961
int dataGridViewRowsCount =
Rows
.Count; // the number of rows in the dataGridView row collection not counting the AddNewRow
20009
if (dataGridRowsCount !=
Rows
.Count)
20022
Rows
.RemoveAtInternal(rowIndex, force: false);
20149
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
20159
nextVisibleRowIndex =
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
20698
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20735
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20787
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20847
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20945
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21072
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
21073
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
21155
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21176
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21193
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21547
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
21629
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21650
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21667
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22073
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
22930
nextScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
22941
if ((
Rows
.GetRowState(nextScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
22945
int firstDisplayedScrollingRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
22953
jumpRows =
Rows
.GetRowCount(DataGridViewElementStates.Visible,
22974
nextScreenVisibleRowIndexTmp =
Rows
.GetNextRow(nextScreenVisibleRowIndex, DataGridViewElementStates.Visible);
23112
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23139
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23191
previousScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
23202
int jumpRows = (
Rows
.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0
23215
previousScreenVisibleRowIndexTmp =
Rows
.GetPreviousRow(previousScreenVisibleRowIndex, DataGridViewElementStates.Visible);
23224
if ((
Rows
.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23227
int firstDisplayedScrollingRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
23237
previousScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
23370
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23397
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23452
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
24314
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) == 0)
24532
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
24541
previousVisibleRowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
24964
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
24996
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25037
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25085
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25167
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25333
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
25334
Rows
.RemoveAtInternal(NewRowIndex, force: false);
25363
dataGridViewCurrentCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X];
25388
dataGridViewCurrentCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X];
25407
Rows
.ClearInternal(recreateNewRow: false);
25528
Rows
.ClearInternal(recreateNewRow: true);
25552
Rows
.AddInternal(RowTemplateClone);
25556
Rows
.AddCopiesInternal(0, rowsCount - 1);
25605
foreach (DataGridViewRow row in
Rows
)
25923
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
25925
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
25927
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
25946
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
25955
Debug.Assert(rowIndex <
Rows
.Count);
25957
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
26202
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
26203
Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow <
Rows
.Count);
26205
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
26262
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
26264
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0)
26277
rowsToScroll =
Rows
.GetRowCount(DataGridViewElementStates.Visible, rowIndex, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26284
int yRowBottomEdge = GetRowYFromIndex(rowIndex) +
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
26287
yRowBottomEdge -=
Rows
.SharedRow(firstDisplayedScrollingRow).GetHeight(firstDisplayedScrollingRow);
26291
firstDisplayedScrollingRow =
Rows
.GetNextRow(firstDisplayedScrollingRow, DataGridViewElementStates.Visible);
26319
Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >=
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
26327
int frozenRowsThickness =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
26350
if (EditingControl is not null && (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
26378
int firstVisibleScrollingRow =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
26380
int newScrolledOffRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26399
deltaY -=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26400
newFirstVisibleScrollingRow =
Rows
.GetNextRow(
26417
deltaY = -
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26418
rows =
Rows
.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26431
newFirstVisibleScrollingRow =
Rows
.GetPreviousRow(
26437
deltaY +=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26465
deltaY =
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26468
newFirstVisibleScrollingRow =
Rows
.GetNextRow(newFirstVisibleScrollingRow, DataGridViewElementStates.Visible);
26475
deltaY +=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26481
newFirstVisibleScrollingRow =
Rows
.GetPreviousRow(
26486
deltaY = -
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26489
int scrollingRowTmp =
Rows
.GetPreviousRow(newFirstVisibleScrollingRow,
26494
deltaY -=
Rows
.SharedRow(scrollingRowTmp).GetHeight(scrollingRowTmp);
26516
scrollHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26517
rowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26522
scrollHeight = -
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26523
rowCount = -
Rows
.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26553
int rowIndex = 0, maxRowIndex =
Rows
.Count;
26557
_ =
Rows
[rowIndex];
26574
int rowIndex = 0, maxRowIndex =
Rows
.Count;
26577
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
26617
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
26658
if (index >=
Rows
.Count)
26660
index -=
Rows
.Count;
26666
return
Rows
.SharedRow(index).Cells[columnIndex];
26693
return
Rows
.SharedRow(rowIndex).Cells[index];
26745
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
26763
&& !IsSharedCellVisible(
Rows
.SharedRow(rowIndex).Cells[columnIndex], rowIndex))
26781
Debug.Assert(rowIndex >= 0 && columnIndex < Columns.Count && rowIndex <
Rows
.Count);
26825
currentCell =
Rows
.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX];
26829
currentCell =
Rows
[oldCurrentCellY].Cells[oldCurrentCellX];
26909
if (rowIndex >=
Rows
.Count)
26940
currentCell =
Rows
[rowIndex].Cells[columnIndex];
26948
if (oldCurrentCellX < Columns.Count && oldCurrentCellY <
Rows
.Count)
26953
if (oldCurrentCellY != _ptCurrentCell.Y && RowHeadersVisible && oldCurrentCellY <
Rows
.Count)
27038
currentCell =
Rows
.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX];
27042
currentCell =
Rows
[oldCurrentCellY].Cells[oldCurrentCellX];
27112
if (oldCurrentCellX < Columns.Count && oldCurrentCellY <
Rows
.Count)
27117
if (RowHeadersVisible && oldCurrentCellY <
Rows
.Count)
27335
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
27468
Debug.Assert(columnIndex >= 0 && rowIndex >= 0 && columnIndex < Columns.Count && rowIndex <
Rows
.Count);
27471
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
27472
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27475
DataGridViewCell dataGridViewCell =
Rows
[rowIndex].Cells[columnIndex];
27499
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27504
for (int row = rowIndex + 1; row <
Rows
.Count; row++)
27506
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27514
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false);
27517
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27524
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27577
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
27579
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27597
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, true);
27602
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false);
27618
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
27621
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
27622
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27625
DataGridViewCell dataGridViewCell =
Rows
[rowIndex].Cells[columnIndex];
27648
if (
Rows
.Count > BulkPaintThreshold)
27662
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27667
for (int row = rowIndex + 1; row <
Rows
.Count; row++)
27669
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27694
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, false);
27697
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27704
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27732
if (!Columns[columnIndex].Visible || (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
27867
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
27870
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
27876
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0)
27879
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
28064
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28069
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
28080
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, true);
28087
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, false);
28238
int visibleFrozenRows =
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28241
int rowVFIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28243
Rows
.SetRowState(rowVFIndex, DataGridViewElementStates.Frozen, false);
28244
Debug.Assert(
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0);
28277
Rows
.Sort(comparer!, direction == ListSortDirection.Ascending);
28305
int rowVIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28309
rowVIndex =
Rows
.GetNextRow(rowVIndex, DataGridViewElementStates.Visible);
28314
Rows
.SetRowState(rowVIndex, DataGridViewElementStates.Frozen, true);
28422
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28429
if (_vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28453
int firstDisplayedScrollingRowHeight =
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow);
28489
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28510
nextVisibleRowIndex =
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
28650
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28671
previousVisibleRowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
28679
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
28860
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28874
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28929
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28940
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexStart,
Rows
.Count);
28943
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexEnd,
Rows
.Count);
28973
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28975
Rows
.InvalidateCachedRowsHeights();
28977
bool rowVisible = (rowIndex >= 0 && (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
29016
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
29112
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
29116
if (((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29118
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed);
29121
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
29135
if (((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29137
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed);
29140
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
29167
&& _ptMouseEnteredCell.Y <
Rows
.Count)
29194
&& _ptMouseEnteredCell.Y <
Rows
.Count)
29295
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29305
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29320
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29330
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29349
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29372
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29411
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29435
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29456
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29492
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29548
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29561
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29595
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29611
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29638
Rows
.GetNextRow(anchorRowIndex, DataGridViewElementStates.Visible),
29692
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29708
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29742
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29758
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29785
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29806
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29815
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29832
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29841
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29977
dataGridViewCell =
Rows
.SharedRow(hti._row).Cells[hti._col];
29985
dataGridViewCell =
Rows
.SharedRow(hti._row).HeaderCell;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
208
return _ownerDataGridView.
Rows
.Count == 0 ? null : Parent.GetChild(1);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (2)
792
DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
793
DataGridView.
Rows
.InvalidateCachedRowsHeight(elementState);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
483
rowIndex < DataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (3)
82
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
125
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
170
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (28)
155
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
257
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
305
if (i < 0 || i >= DataGridView.
Rows
.Count - 1)
313
|| string.IsNullOrEmpty(DataGridView.
Rows
[i].Cells[j].Value?.ToString()))
318
_nonEmptyNeighbors.Add(DataGridView.
Rows
[i].Cells[j].AccessibilityObject.Bounds);
436
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
506
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
538
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
743
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
964
DataGridViewElementStates rowState = DataGridView.
Rows
.GetRowState(rowIndex);
990
isLastVisibleRow: rowIndex == DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible));
1293
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1717
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1787
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1793
if (DataGridView.
Rows
.SharedRow(rowIndex) != OwningRow)
1798
DataGridViewElementStates rowEffectiveState = DataGridView.
Rows
.GetRowState(rowIndex);
1854
Debug.Assert(state == stateDebug || DataGridView.
Rows
.SharedRow(rowIndex).Index == -1);
1867
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1901
if (DataGridView.
Rows
.SharedRow(rowIndex).HasDefaultCellStyle)
1903
rowStyle = DataGridView.
Rows
.SharedRow(rowIndex).DefaultCellStyle;
2405
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, dataGridView.
Rows
.Count);
3034
if (DataGridView is not null && e.ColumnIndex < DataGridView.Columns.Count && e.RowIndex < DataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (8)
62
: _owner.DataGridView.
Rows
.GetVisibleIndex(_owner.OwningRow) + RowStartIndex;
466
if (_owner.OwningRow.Index == _owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
474
int previousVisibleRow = _owner.DataGridView.
Rows
.GetPreviousRow(_owner.OwningRow.Index, DataGridViewElementStates.Visible);
475
return _owner.DataGridView.
Rows
[previousVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject;
479
if (_owner.OwningRow.Index == _owner.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
485
int nextVisibleRow = _owner.DataGridView.
Rows
.GetNextRow(_owner.OwningRow.Index, DataGridViewElementStates.Visible);
486
return _owner.DataGridView.
Rows
[nextVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject;
738
? _owner.DataGridView.
Rows
.GetVisibleIndex(_owner.OwningRow)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellPaintingEventArgs.cs (3)
80
if (RowIndex < -1 || RowIndex >= _dataGridView.
Rows
.Count)
109
if (RowIndex < -1 || RowIndex >= _dataGridView.
Rows
.Count)
144
if (RowIndex < -1 || RowIndex >= _dataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
834
rowIndex < DataGridView.
Rows
.Count)
972
rowIndex < 0 || rowIndex >= DataGridView.
Rows
.Count)
977
int visibleRowIndex = DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (5)
86
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
129
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
173
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
213
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
267
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (8)
951
for (rowIndex = dataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
953
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
955
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
976
rowIndex = dataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
979
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
995
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex,
1004
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
1020
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
1067
foreach (DataGridViewRow row in DataGridView.
Rows
)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1767
DataGridViewElementStates rowState = DataGridView.
Rows
.GetRowState(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (11)
52
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
115
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
161
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
204
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
248
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
292
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
333
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
396
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
439
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
480
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
522
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (4)
234
(DataGridView is not null && (rowIndex < 0 || rowIndex >= DataGridView.
Rows
.Count)))
239
if (DataGridView is not null && DataGridView.
Rows
.SharedRow(rowIndex) != OwningRow)
363
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
365
if (DataGridView.
Rows
.SharedRow(rowIndex) != OwningRow)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
93
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
167
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
207
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
733
rowIndex < DataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (7)
51
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
120
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
162
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
212
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
257
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
300
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
342
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (10)
1215
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1242
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1291
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1372
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1375
if (DataGridView is null || DataGridView.
Rows
.SharedRow(rowIndex).Index != -1)
1386
return DataGridView.
Rows
.GetRowState(rowIndex);
1398
DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
1399
DataGridView.
Rows
.InvalidateCachedRowsHeight(elementState);
1426
DataGridViewRow sharedRow = dataGridView.
Rows
.SharedRow(rowIndex);
1468
sharedRow = dataGridView.
Rows
.SharedRow(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (5)
35
? dataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow) + 1
36
: dataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow)
98
? _owningDataGridViewRow.DataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow) + RowStartIndex
341
if (_owningDataGridViewRow.Index != _owningDataGridViewRow.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
355
if (_owningDataGridViewRow.Index != _owningDataGridViewRow.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
100
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
297
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
567
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (6)
155
if (Owner.OwningRow.Index == Owner.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
160
int nextVisibleRow = Owner.DataGridView.
Rows
.GetNextRow(Owner.OwningRow.Index, DataGridViewElementStates.Visible);
161
int actualDisplayIndex = Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, nextVisibleRow);
174
if (Owner.OwningRow.Index == Owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
187
int previousVisibleRow = Owner.DataGridView.
Rows
.GetPreviousRow(Owner.OwningRow.Index, DataGridViewElementStates.Visible);
188
int actualDisplayIndex = Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, previousVisibleRow);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPostPaintEventArgs.cs (10)
64
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
69
_dataGridView.
Rows
.SharedRow(RowIndex).DrawFocus(
81
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
86
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
99
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
110
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
123
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
128
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
152
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
157
_dataGridView.
Rows
.SharedRow(RowIndex).PaintHeader(
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPrePaintEventArgs.cs (10)
81
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
86
_dataGridView.
Rows
.SharedRow(RowIndex).DrawFocus(
98
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
103
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
116
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
127
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
140
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
145
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
169
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
174
_dataGridView.
Rows
.SharedRow(RowIndex).PaintHeader(
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
63
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (3)
209
Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 0)
213
DataGridViewRow row = Owner.DataGridView.
Rows
[Owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible)];
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (7)
57
_sampleDataGridViewSelected.
Rows
.Add(row);
58
_sampleDataGridViewSelected.
Rows
[0].Selected = true;
67
_sampleDataGridView.
Rows
.Add(row);
306
_sampleDataGridView.
Rows
[0].Height = _sampleDataGridView.Height;
309
_sampleDataGridViewSelected.
Rows
[0].Height = _sampleDataGridViewSelected.Height;
320
Debug.Assert(e.Cell == _sampleDataGridView.
Rows
[0].Cells[0], "the sample data grid view has only one cell");
332
dataGridView.
Rows
[0].Height = dataGridView.Height;