2600 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)
803
DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
804
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)
163
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
265
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
313
if (i < 0 || i >= DataGridView.
Rows
.Count - 1)
321
|| string.IsNullOrEmpty(DataGridView.
Rows
[i].Cells[j].Value?.ToString()))
326
_nonEmptyNeighbors.Add(DataGridView.
Rows
[i].Cells[j].AccessibilityObject.Bounds);
444
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
514
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
546
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
751
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
972
DataGridViewElementStates rowState = DataGridView.
Rows
.GetRowState(rowIndex);
998
isLastVisibleRow: rowIndex == DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible));
1304
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1728
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1798
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1804
if (DataGridView.
Rows
.SharedRow(rowIndex) != OwningRow)
1809
DataGridViewElementStates rowEffectiveState = DataGridView.
Rows
.GetRowState(rowIndex);
1865
Debug.Assert(state == stateDebug || DataGridView.
Rows
.SharedRow(rowIndex).Index == -1);
1878
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1912
if (DataGridView.
Rows
.SharedRow(rowIndex).HasDefaultCellStyle)
1914
rowStyle = DataGridView.
Rows
.SharedRow(rowIndex).DefaultCellStyle;
2416
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, dataGridView.
Rows
.Count);
3045
if (DataGridView is not null && e.ColumnIndex < DataGridView.Columns.Count && e.RowIndex < DataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\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;
System.Windows.Forms.Tests (1629)
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (1)
34
DataGridViewCell cell = dataGridView.
Rows
[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (210)
209
DataGridViewCell cell = dataGridView.
Rows
[0].Cells[0];
228
dataGridView.
Rows
.Add();
230
for (int i = 0; i < dataGridView.
Rows
.Count; i++)
232
for (int j = 0; j < dataGridView.
Rows
[i].Cells.Count; j++)
234
AccessibleObject expected = dataGridView.
Rows
[i].Cells[j].AccessibilityObject;
329
dataGridView.
Rows
.Add(); // 1
330
VARIANT isOffscreen = dataGridView.
Rows
[1].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId);
333
dataGridView.
Rows
.Add(); // 2
334
dataGridView.
Rows
.Add(); // 3
335
dataGridView.
Rows
.Add(); // 4
336
isOffscreen = dataGridView.
Rows
[4].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId);
385
dataGridView.
Rows
[0].Cells[0].ReadOnly = isReadOnly;
389
foreach (DataGridViewRow row in dataGridView.
Rows
)
410
dataGridView.
Rows
[0].ReadOnly = isReadOnly;
414
foreach (DataGridViewRow row in dataGridView.
Rows
)
439
foreach (DataGridViewRow row in dataGridView.
Rows
)
582
dataGridView.
Rows
.Add("Test");
583
dataGridView.
Rows
[0].Visible = false;
635
dataGridView.
Rows
.Add("Test 1");
636
dataGridView.
Rows
.Add("Test 2");
638
dataGridView.
Rows
[0].Visible = false;
654
dataGridView.
Rows
.Add("Test 1");
655
dataGridView.
Rows
.Add("Test 2");
657
dataGridView.
Rows
[1].Visible = false;
673
dataGridView.
Rows
.Add("Test 1");
674
dataGridView.
Rows
.Add("Test 2");
676
dataGridView.
Rows
[0].Visible = false;
677
dataGridView.
Rows
[1].Visible = false;
692
dataGridView.
Rows
.Add("Test 1");
693
dataGridView.
Rows
.Add("Test 2");
695
dataGridView.
Rows
[0].Visible = false;
710
dataGridView.
Rows
.Add("Test 1");
711
dataGridView.
Rows
.Add("Test 2");
713
dataGridView.
Rows
[1].Visible = false;
728
dataGridView.
Rows
.Add("Test 1");
729
dataGridView.
Rows
.Add("Test 2");
731
dataGridView.
Rows
[0].Visible = false;
732
dataGridView.
Rows
[1].Visible = false;
748
dataGridView.
Rows
.Add("Test 1");
749
dataGridView.
Rows
.Add("Test 2");
751
dataGridView.
Rows
[0].Visible = false;
754
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0));
769
dataGridView.
Rows
.Add("Test 1");
770
dataGridView.
Rows
.Add("Test 2");
772
dataGridView.
Rows
[1].Visible = false;
775
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0));
790
dataGridView.
Rows
.Add("Test 1");
791
dataGridView.
Rows
.Add("Test 2");
793
dataGridView.
Rows
[0].Visible = false;
794
dataGridView.
Rows
[1].Visible = false;
811
dataGridView.
Rows
.Add("Test 1");
812
dataGridView.
Rows
.Add("Test 2");
814
dataGridView.
Rows
[0].Visible = false;
820
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1));
834
dataGridView.
Rows
.Add("Test 1");
835
dataGridView.
Rows
.Add("Test 2");
837
dataGridView.
Rows
[1].Visible = false;
843
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1));
857
dataGridView.
Rows
.Add("Test 1");
858
dataGridView.
Rows
.Add("Test 2");
860
dataGridView.
Rows
[0].Visible = false;
861
dataGridView.
Rows
[1].Visible = false;
881
dataGridView.
Rows
.Add("Test 1");
882
dataGridView.
Rows
.Add("Test 2");
884
dataGridView.
Rows
[0].Visible = false;
886
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
887
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
901
dataGridView.
Rows
.Add("Test 1");
902
dataGridView.
Rows
.Add("Test 2");
904
dataGridView.
Rows
[1].Visible = false;
906
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
907
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
921
dataGridView.
Rows
.Add("Test 1");
922
dataGridView.
Rows
.Add("Test 2");
924
dataGridView.
Rows
[0].Visible = false;
925
dataGridView.
Rows
[1].Visible = false;
941
dataGridView.
Rows
.Add("Test 1");
942
dataGridView.
Rows
.Add("Test 2");
945
dataGridView.
Rows
[0].Visible = false;
948
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
961
dataGridView.
Rows
.Add("Test 1");
962
dataGridView.
Rows
.Add("Test 2");
965
dataGridView.
Rows
[1].Visible = false;
968
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
981
dataGridView.
Rows
.Add("Test 1");
982
dataGridView.
Rows
.Add("Test 2");
985
dataGridView.
Rows
[0].Visible = false;
986
dataGridView.
Rows
[1].Visible = false;
1003
dataGridView.
Rows
.Add("Test 1");
1004
dataGridView.
Rows
.Add("Test 2");
1006
dataGridView.
Rows
[0].Visible = false;
1008
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild));
1009
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
1023
dataGridView.
Rows
.Add("Test 1");
1024
dataGridView.
Rows
.Add("Test 2");
1026
dataGridView.
Rows
[1].Visible = false;
1028
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild));
1029
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
1043
dataGridView.
Rows
.Add("Test 1");
1044
dataGridView.
Rows
.Add("Test 2");
1046
dataGridView.
Rows
[0].Visible = false;
1047
dataGridView.
Rows
[1].Visible = false;
1063
dataGridView.
Rows
.Add("Test 1");
1064
dataGridView.
Rows
.Add("Test 2");
1067
dataGridView.
Rows
[0].Visible = false;
1070
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
1083
dataGridView.
Rows
.Add("Test 1");
1084
dataGridView.
Rows
.Add("Test 2");
1087
dataGridView.
Rows
[1].Visible = false;
1090
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
1103
dataGridView.
Rows
.Add("Test 1");
1104
dataGridView.
Rows
.Add("Test 2");
1107
dataGridView.
Rows
[0].Visible = false;
1108
dataGridView.
Rows
[1].Visible = false;
1210
dataGridView.
Rows
.Add("Test 1");
1211
dataGridView.
Rows
.Add("Test 2");
1212
dataGridView.
Rows
.Add("Test 3");
1218
Assert.Equal(dataGridView.
Rows
[0].HeaderCell.AccessibilityObject, rowHeaders[0]);
1219
Assert.Equal(dataGridView.
Rows
[1].HeaderCell.AccessibilityObject, rowHeaders[1]);
1220
Assert.Equal(dataGridView.
Rows
[2].HeaderCell.AccessibilityObject, rowHeaders[2]);
1229
dataGridView.
Rows
.Add("Test 1");
1230
dataGridView.
Rows
.Add("Test 2");
1231
dataGridView.
Rows
.Add("Test 3");
1232
dataGridView.
Rows
[0].Visible = false;
1238
Assert.Equal(dataGridView.
Rows
[1].HeaderCell.AccessibilityObject, rowHeaders[0]);
1239
Assert.Equal(dataGridView.
Rows
[2].HeaderCell.AccessibilityObject, rowHeaders[1]);
1248
dataGridView.
Rows
.Add("Test 1");
1249
dataGridView.
Rows
.Add("Test 2");
1250
dataGridView.
Rows
.Add("Test 3");
1251
dataGridView.
Rows
[1].Visible = false;
1257
Assert.Equal(dataGridView.
Rows
[0].HeaderCell.AccessibilityObject, rowHeaders[0]);
1258
Assert.Equal(dataGridView.
Rows
[2].HeaderCell.AccessibilityObject, rowHeaders[1]);
1267
dataGridView.
Rows
.Add("Test 1");
1268
dataGridView.
Rows
.Add("Test 2");
1269
dataGridView.
Rows
.Add("Test 3");
1270
dataGridView.
Rows
[2].Visible = false;
1276
Assert.Equal(dataGridView.
Rows
[0].HeaderCell.AccessibilityObject, rowHeaders[0]);
1277
Assert.Equal(dataGridView.
Rows
[1].HeaderCell.AccessibilityObject, rowHeaders[1]);
1286
dataGridView.
Rows
.Add("Test 1");
1287
dataGridView.
Rows
.Add("Test 2");
1288
dataGridView.
Rows
.Add("Test 3");
1289
dataGridView.
Rows
[0].Visible = false;
1290
dataGridView.
Rows
[1].Visible = false;
1291
dataGridView.
Rows
[2].Visible = false;
1307
dataGridView.
Rows
.Add();
1308
dataGridView.
Rows
.Add();
1309
dataGridView.
Rows
.Add();
1311
dataGridView.
Rows
[0].Visible = false;
1313
int rowCount = dataGridView.
Rows
.Count;
1322
: dataGridView.
Rows
[i + 1].Cells[j + 1].AccessibilityObject;
1338
dataGridView.
Rows
.Add();
1339
dataGridView.
Rows
.Add();
1340
dataGridView.
Rows
.Add();
1342
dataGridView.
Rows
[1].Visible = false;
1344
int rowCount = dataGridView.
Rows
.Count;
1349
AccessibleObject expected = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1353
expected = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1359
expected = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
1363
expected = dataGridView.
Rows
[2].Cells[2].AccessibilityObject;
1381
dataGridView.
Rows
.Add();
1382
dataGridView.
Rows
.Add();
1383
dataGridView.
Rows
.Add();
1385
dataGridView.
Rows
[2].Visible = false;
1387
int rowCount = dataGridView.
Rows
.Count;
1396
: dataGridView.
Rows
[i].Cells[j].AccessibilityObject;
1417
AccessibleObject accessibleObjectCell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1418
AccessibleObject accessibleObjectCell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1419
AccessibleObject accessibleObjectCell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1440
AccessibleObject accessibleObjectCell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1441
AccessibleObject accessibleObjectCell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1462
AccessibleObject accessibleObjectCell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1463
AccessibleObject accessibleObjectCell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1484
AccessibleObject accessibleObjectCell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1485
AccessibleObject accessibleObjectCell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1552
dataGridView.
Rows
.Add("1");
1553
dataGridView.
Rows
.Add("2");
1554
dataGridView.
Rows
.Add("3");
1565
dataGridView.
Rows
.Add("1");
1566
dataGridView.
Rows
.Add("2");
1567
dataGridView.
Rows
.Add("3");
1568
dataGridView.
Rows
[0].Visible = false;
1579
dataGridView.
Rows
.Add("1");
1580
dataGridView.
Rows
.Add("2");
1581
dataGridView.
Rows
.Add("3");
1582
dataGridView.
Rows
[0].Visible = false;
1583
dataGridView.
Rows
[1].Visible = false;
1594
dataGridView.
Rows
.Add("1");
1595
dataGridView.
Rows
.Add("2");
1596
dataGridView.
Rows
.Add("3");
1597
dataGridView.
Rows
[0].Visible = false;
1598
dataGridView.
Rows
[1].Visible = false;
1599
dataGridView.
Rows
[2].Visible = false;
1610
dataGridView.
Rows
.Add("1");
1611
dataGridView.
Rows
.Add("2");
1612
dataGridView.
Rows
.Add("3");
1623
dataGridView.
Rows
.Add("1");
1624
dataGridView.
Rows
.Add("2");
1625
dataGridView.
Rows
.Add("3");
1626
dataGridView.
Rows
[0].Visible = false;
1637
dataGridView.
Rows
.Add("1");
1638
dataGridView.
Rows
.Add("2");
1639
dataGridView.
Rows
.Add("3");
1640
dataGridView.
Rows
[0].Visible = false;
1641
dataGridView.
Rows
[1].Visible = false;
1652
dataGridView.
Rows
.Add("1");
1653
dataGridView.
Rows
.Add("2");
1654
dataGridView.
Rows
.Add("3");
1655
dataGridView.
Rows
[0].Visible = false;
1656
dataGridView.
Rows
[1].Visible = false;
1657
dataGridView.
Rows
[2].Visible = false;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (148)
55
accCellWidthSum += dataGridView.
Rows
[0].Cells[i].AccessibilityObject.BoundingRectangle.Width;
58
int accRowWidth = dataGridView.
Rows
[0].AccessibilityObject.BoundingRectangle.Width;
86
accCellWidthSum += dataGridView.
Rows
[0].Cells[i].AccessibilityObject.BoundingRectangle.Width;
89
int accRowWidth = dataGridView.
Rows
[0].AccessibilityObject.BoundingRectangle.Width;
233
dataGridView.
Rows
.Add("1");
234
dataGridView.
Rows
.Add("2");
235
dataGridView.
Rows
.Add("3");
237
AccessibleObject accessibleObject = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
251
dataGridView.
Rows
.Add("1");
252
dataGridView.
Rows
.Add("2");
253
dataGridView.
Rows
.Add("3");
254
dataGridView.
Rows
[0].Visible = false;
256
AccessibleObject accessibleObject = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
270
dataGridView.
Rows
.Add("1");
271
dataGridView.
Rows
.Add("2");
272
dataGridView.
Rows
.Add("3");
273
dataGridView.
Rows
[0].Visible = false;
274
dataGridView.
Rows
[1].Visible = false;
276
AccessibleObject accessibleObject = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
647
dataGridView.
Rows
.Add(new DataGridViewRow());
648
dataGridView.
Rows
.Add(new DataGridViewRow());
650
dataGridView.
Rows
[0].Cells[0].ReadOnly = true;
651
dataGridView.
Rows
[1].ReadOnly = true;
652
dataGridView.
Rows
[2].ReadOnly = false;
654
foreach (DataGridViewRow row in dataGridView.
Rows
)
681
dataGridView.
Rows
.Add(new DataGridViewRow());
683
DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
696
dataGridView.
Rows
.Add(new DataGridViewRow());
698
DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
711
dataGridView.
Rows
.Add(new DataGridViewRow());
713
DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
741
dataGridView.
Rows
.Add(new DataGridViewRow());
742
DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
773
dataGridView.
Rows
.Add("1");
774
dataGridView.
Rows
.Add("2");
775
dataGridView.
Rows
.Add("3");
777
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
778
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].Cells[0].AccessibilityObject;
779
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
792
dataGridView.
Rows
.Add("1");
793
dataGridView.
Rows
.Add("2");
794
dataGridView.
Rows
.Add("3");
795
dataGridView.
Rows
[0].Visible = false;
797
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
798
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].Cells[0].AccessibilityObject;
799
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
812
dataGridView.
Rows
.Add("1");
813
dataGridView.
Rows
.Add("2");
814
dataGridView.
Rows
.Add("3");
815
dataGridView.
Rows
[1].Visible = false;
817
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
818
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].Cells[0].AccessibilityObject;
819
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
832
dataGridView.
Rows
.Add("1");
833
dataGridView.
Rows
.Add("2");
834
dataGridView.
Rows
.Add("3");
835
dataGridView.
Rows
[2].Visible = false;
837
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
838
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].Cells[0].AccessibilityObject;
839
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
873
dataGridView.
Rows
.Add("1");
875
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
876
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
877
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
893
dataGridView.
Rows
.Add("1");
895
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
896
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
897
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
913
dataGridView.
Rows
.Add("1");
915
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
916
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
917
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
933
dataGridView.
Rows
.Add("1");
935
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
936
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
937
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
955
dataGridView.
Rows
.Add("1");
957
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
958
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
959
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
978
dataGridView.
Rows
.Add("1");
980
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
981
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
982
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1001
dataGridView.
Rows
.Add("1");
1003
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1004
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1005
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1024
dataGridView.
Rows
.Add("1");
1026
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1027
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1028
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1041
dataGridView.
Rows
.Add(new DataGridViewRow());
1043
DataGridViewCellAccessibleObject dataGridViewCellAccessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
1057
DataGridViewRow row = dataGridView.
Rows
[0];
1087
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1088
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1089
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1090
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1106
DataGridViewRow row = dataGridView.
Rows
[0];
1125
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1126
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1127
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1144
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1145
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1146
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1163
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1164
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1165
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1182
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1183
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1184
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1202
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1203
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1204
AccessibleObject cell4 = dataGridView.
Rows
[0].Cells[3].AccessibilityObject;
1222
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1223
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1224
AccessibleObject cell4 = dataGridView.
Rows
[0].Cells[3].AccessibilityObject;
1242
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1243
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1244
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1263
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1264
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1265
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1266
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1288
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1289
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1290
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1310
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1311
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1312
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1332
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1333
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1334
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1354
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1355
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1356
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1377
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1378
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1397
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1398
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1417
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1418
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1434
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1435
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1452
AccessibleObject cell = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1484
dataGridView.
Rows
.Add(new DataGridViewRow());
1485
Assert.Equal($"{string.Format(SR.DataGridView_AccRowName, expectedIndex)}, Not sorted.", dataGridView.
Rows
[0].Cells[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (26)
33
var cell = control.
Rows
[0].Cells[0];
77
var cell = control.
Rows
[0].Cells[0];
135
control.
Rows
.Add(new DataGridViewRow());
136
var cell = control.
Rows
[0].Cells[0];
159
control.
Rows
.Add(new DataGridViewRow());
160
var cell = control.
Rows
[0].Cells[0];
214
control.
Rows
.Add(new DataGridViewRow());
215
var cell = control.
Rows
[0].Cells[0];
256
dataGridView.
Rows
.Add(row);
259
DataGridViewCell cell = dataGridView.
Rows
[0].Cells[0];
275
dataGridView.
Rows
.Add(true);
276
Assert.Equal(ToggleState.ToggleState_On, dataGridView.
Rows
[1].Cells[0].AccessibilityObject.ToggleState);
278
dataGridView.
Rows
.Add(false);
279
Assert.Equal(ToggleState.ToggleState_Off, dataGridView.
Rows
[2].Cells[0].AccessibilityObject.ToggleState);
281
dataGridView.
Rows
.Add(CheckState.Indeterminate);
282
Assert.Equal(ToggleState.ToggleState_Indeterminate, dataGridView.
Rows
[3].Cells[0].AccessibilityObject.ToggleState);
284
dataGridView.
Rows
.Add(CheckState.Checked);
285
Assert.Equal(ToggleState.ToggleState_On, dataGridView.
Rows
[4].Cells[0].AccessibilityObject.ToggleState);
287
dataGridView.
Rows
.Add(CheckState.Unchecked);
288
Assert.Equal(ToggleState.ToggleState_Off, dataGridView.
Rows
[5].Cells[0].AccessibilityObject.ToggleState);
294
dataGridView.
Rows
.Add("on");
295
Assert.Equal(ToggleState.ToggleState_On, dataGridView.
Rows
[4].Cells[0].AccessibilityObject.ToggleState);
297
dataGridView.
Rows
.Add("off");
298
Assert.Equal(ToggleState.ToggleState_Off, dataGridView.
Rows
[5].Cells[0].AccessibilityObject.ToggleState);
300
dataGridView.
Rows
.Add("not set");
301
Assert.Equal(ToggleState.ToggleState_Indeterminate, dataGridView.
Rows
[3].Cells[0].AccessibilityObject.ToggleState);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxCellAccessibleObjectTests.cs (6)
30
dataGridView.
Rows
.Add();
31
dataGridView.CurrentCell = dataGridView.
Rows
[0].Cells[0];
38
bool actualPropertyValue = (bool)dataGridView.
Rows
[0].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsExpandCollapsePatternAvailablePropertyId);
64
dataGridView.
Rows
.Add();
65
dataGridView.CurrentCell = dataGridView.
Rows
[0].Cells[0];
72
int actualPropertyValue = (int)dataGridView.
Rows
[0].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (2)
120
control.
Rows
.Add();
123
control.CurrentCell = control.
Rows
[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (405)
82
dataGridView.
Rows
.Add("1");
83
dataGridView.
Rows
.Add("2");
84
dataGridView.
Rows
.Add("3");
86
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
87
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
88
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
102
dataGridView.
Rows
.Add("1");
103
dataGridView.
Rows
.Add("2");
104
dataGridView.
Rows
.Add("3");
105
dataGridView.
Rows
[0].Visible = false;
107
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
108
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
109
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
123
dataGridView.
Rows
.Add("1");
124
dataGridView.
Rows
.Add("2");
125
dataGridView.
Rows
.Add("3");
126
dataGridView.
Rows
[1].Visible = false;
128
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
129
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
130
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
144
dataGridView.
Rows
.Add("1");
145
dataGridView.
Rows
.Add("2");
146
dataGridView.
Rows
.Add("3");
147
dataGridView.
Rows
[2].Visible = false;
149
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
150
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
151
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
412
dataGridView.
Rows
.Add("1");
413
dataGridView.
Rows
.Add("2");
414
dataGridView.
Rows
.Add("3");
417
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
418
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
419
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
420
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
441
dataGridView.
Rows
.Add("1");
442
dataGridView.
Rows
.Add("2");
443
dataGridView.
Rows
.Add("3");
444
dataGridView.
Rows
[0].Visible = false;
447
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
448
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
449
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
468
dataGridView.
Rows
.Add("1");
469
dataGridView.
Rows
.Add("2");
470
dataGridView.
Rows
.Add("3");
471
dataGridView.
Rows
[1].Visible = false;
474
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
475
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
476
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
495
dataGridView.
Rows
.Add("1");
496
dataGridView.
Rows
.Add("2");
497
dataGridView.
Rows
.Add("3");
498
dataGridView.
Rows
[2].Visible = false;
501
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
502
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
503
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
522
dataGridView.
Rows
.Add("1");
523
dataGridView.
Rows
.Add("2");
524
dataGridView.
Rows
.Add("3");
526
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
527
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
528
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
545
dataGridView.
Rows
.Add("1");
546
dataGridView.
Rows
.Add("2");
547
dataGridView.
Rows
.Add("3");
548
dataGridView.
Rows
[0].Visible = false;
550
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
551
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
566
dataGridView.
Rows
.Add("1");
567
dataGridView.
Rows
.Add("2");
568
dataGridView.
Rows
.Add("3");
569
dataGridView.
Rows
[1].Visible = false;
571
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
572
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
587
dataGridView.
Rows
.Add("1");
588
dataGridView.
Rows
.Add("2");
589
dataGridView.
Rows
.Add("3");
590
dataGridView.
Rows
[2].Visible = false;
592
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
593
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
608
dataGridView.
Rows
.Add("1");
609
dataGridView.
Rows
.Add("2");
610
dataGridView.
Rows
.Add("3");
612
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
613
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
614
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
615
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
634
dataGridView.
Rows
.Add("1");
635
dataGridView.
Rows
.Add("2");
636
dataGridView.
Rows
.Add("3");
638
dataGridView.
Rows
[0].Visible = false;
640
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
641
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
642
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
659
dataGridView.
Rows
.Add("1");
660
dataGridView.
Rows
.Add("2");
661
dataGridView.
Rows
.Add("3");
663
dataGridView.
Rows
[1].Visible = false;
665
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
666
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
667
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
684
dataGridView.
Rows
.Add("1");
685
dataGridView.
Rows
.Add("2");
686
dataGridView.
Rows
.Add("3");
688
dataGridView.
Rows
[2].Visible = false;
690
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
691
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
692
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
709
dataGridView.
Rows
.Add("1");
710
dataGridView.
Rows
.Add("2");
711
dataGridView.
Rows
.Add("3");
714
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
715
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
716
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
735
dataGridView.
Rows
.Add("1");
736
dataGridView.
Rows
.Add("2");
737
dataGridView.
Rows
.Add("3");
738
dataGridView.
Rows
[0].Visible = false;
741
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
742
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
759
dataGridView.
Rows
.Add("1");
760
dataGridView.
Rows
.Add("2");
761
dataGridView.
Rows
.Add("3");
762
dataGridView.
Rows
[1].Visible = false;
765
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
766
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
783
dataGridView.
Rows
.Add("1");
784
dataGridView.
Rows
.Add("2");
785
dataGridView.
Rows
.Add("3");
786
dataGridView.
Rows
[2].Visible = false;
789
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
790
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
807
dataGridView.
Rows
.Add("1");
808
dataGridView.
Rows
.Add("2");
809
dataGridView.
Rows
.Add("3");
812
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
813
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
814
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
815
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
836
dataGridView.
Rows
.Add("1");
837
dataGridView.
Rows
.Add("2");
838
dataGridView.
Rows
.Add("3");
839
dataGridView.
Rows
[0].Visible = false;
842
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
843
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
844
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
863
dataGridView.
Rows
.Add("1");
864
dataGridView.
Rows
.Add("2");
865
dataGridView.
Rows
.Add("3");
866
dataGridView.
Rows
[1].Visible = false;
869
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
870
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
871
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
890
dataGridView.
Rows
.Add("1");
891
dataGridView.
Rows
.Add("2");
892
dataGridView.
Rows
.Add("3");
893
dataGridView.
Rows
[2].Visible = false;
896
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
897
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
898
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
917
dataGridView.
Rows
.Add("1");
918
dataGridView.
Rows
.Add("2");
919
dataGridView.
Rows
.Add("3");
921
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
922
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
923
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
940
dataGridView.
Rows
.Add("1");
941
dataGridView.
Rows
.Add("2");
942
dataGridView.
Rows
.Add("3");
943
dataGridView.
Rows
[0].Visible = false;
945
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
946
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
961
dataGridView.
Rows
.Add("1");
962
dataGridView.
Rows
.Add("2");
963
dataGridView.
Rows
.Add("3");
964
dataGridView.
Rows
[1].Visible = false;
966
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
967
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
982
dataGridView.
Rows
.Add("1");
983
dataGridView.
Rows
.Add("2");
984
dataGridView.
Rows
.Add("3");
985
dataGridView.
Rows
[2].Visible = false;
987
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
988
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1003
dataGridView.
Rows
.Add("1");
1004
dataGridView.
Rows
.Add("2");
1005
dataGridView.
Rows
.Add("3");
1007
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1008
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1009
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1010
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
1029
dataGridView.
Rows
.Add("1");
1030
dataGridView.
Rows
.Add("2");
1031
dataGridView.
Rows
.Add("3");
1033
dataGridView.
Rows
[0].Visible = false;
1035
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1036
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1037
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
1054
dataGridView.
Rows
.Add("1");
1055
dataGridView.
Rows
.Add("2");
1056
dataGridView.
Rows
.Add("3");
1058
dataGridView.
Rows
[1].Visible = false;
1060
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1061
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1062
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
1079
dataGridView.
Rows
.Add("1");
1080
dataGridView.
Rows
.Add("2");
1081
dataGridView.
Rows
.Add("3");
1083
dataGridView.
Rows
[2].Visible = false;
1085
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1086
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1087
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
1104
dataGridView.
Rows
.Add("1");
1105
dataGridView.
Rows
.Add("2");
1106
dataGridView.
Rows
.Add("3");
1109
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1110
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1111
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1130
dataGridView.
Rows
.Add("1");
1131
dataGridView.
Rows
.Add("2");
1132
dataGridView.
Rows
.Add("3");
1133
dataGridView.
Rows
[0].Visible = false;
1136
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1137
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1154
dataGridView.
Rows
.Add("1");
1155
dataGridView.
Rows
.Add("2");
1156
dataGridView.
Rows
.Add("3");
1157
dataGridView.
Rows
[1].Visible = false;
1160
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1161
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1178
dataGridView.
Rows
.Add("1");
1179
dataGridView.
Rows
.Add("2");
1180
dataGridView.
Rows
.Add("3");
1181
dataGridView.
Rows
[2].Visible = false;
1184
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1185
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1204
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1205
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1219
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1235
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1236
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1237
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1253
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1254
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1255
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1271
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1272
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1273
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1291
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1307
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1308
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1309
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1325
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1326
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1327
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1343
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1344
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1345
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1363
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1364
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1382
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1383
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1384
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1403
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1404
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1405
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1424
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1425
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1426
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1445
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1446
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1447
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1465
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1466
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1467
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1486
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1487
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1488
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1507
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1508
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1509
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1528
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1529
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1530
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1544
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1560
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1561
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1562
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1578
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1579
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1580
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1596
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1597
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1598
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1616
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1632
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1633
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1634
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1650
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1651
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1652
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1668
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1669
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1670
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1688
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1689
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1707
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1708
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1709
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1728
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1729
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1730
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1749
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1750
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1751
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1770
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1771
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1772
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1790
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1791
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1792
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1811
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1812
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1813
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1832
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1833
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1834
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1853
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1854
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1855
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1873
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1889
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1890
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1891
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1892
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1910
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1911
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1912
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1929
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1930
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1931
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1948
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1949
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1950
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1966
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1967
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1968
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1969
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1970
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1991
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1992
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2009
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2010
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2011
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2012
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2030
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2031
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2032
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2033
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2051
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2052
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2053
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2054
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2074
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2075
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2076
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2077
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2098
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2099
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2100
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2120
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2121
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2122
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2142
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2143
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2144
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2163
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2164
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2165
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2166
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2167
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2189
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2190
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2191
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2192
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2213
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2214
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2215
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2216
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2237
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2238
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2239
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2240
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2257
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2272
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2288
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2305
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2319
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2334
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2350
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2367
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2383
dataGridView.
Rows
.Add(new DataGridViewRow());
2384
dataGridView.
Rows
[0].Cells[0].Value = "test1";
2386
Assert.Equal("test1", ((BSTR)dataGridView.
Rows
[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
2399
dataGridView.
Rows
.Add(new DataGridViewRow());
2401
Assert.Equal(string.Format(SR.DataGridView_AccRowName, expectedIndex), dataGridView.
Rows
[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (13)
31
DataGridViewRowHeaderCell cell = control.
Rows
[0].HeaderCell;
58
DataGridViewRow row = control.
Rows
[0];
79
var accessibleObject = (DataGridViewRowHeaderCellAccessibleObject)control.
Rows
[0].HeaderCell.AccessibilityObject;
94
DataGridViewRowHeaderCell cell = control.
Rows
[0].HeaderCell;
114
DataGridViewRowHeaderCell cell = control.
Rows
[0].HeaderCell;
130
var accessibleObject = (DataGridViewRowHeaderCellAccessibleObject)control.
Rows
[0].HeaderCell.AccessibilityObject;
142
DataGridViewRow row = control.
Rows
[0];
167
DataGridViewRow row = control.
Rows
[0];
184
DataGridViewRow row = control.
Rows
[0];
202
DataGridViewRow row = control.
Rows
[0];
221
DataGridViewRow row = control.
Rows
[0];
237
DataGridViewRow row = control.
Rows
[0];
252
DataGridViewRow row = control.
Rows
[0];
System\Windows\Forms\AccessibleObjects\DataGridViewRowsAccessibleObjectTests.cs (12)
20
dataGridView.
Rows
[0].Height = 20;
21
dataGridView.
Rows
[1].Height = 20;
22
dataGridView.
Rows
[2].Height = 20;
23
dataGridView.
Rows
[3].Height = 20;
24
dataGridView.
Rows
[4].Height = 20;
31
accRowHeightSum += dataGridView.
Rows
[i].AccessibilityObject.BoundingRectangle.Height;
49
dataGridView.
Rows
[0].Height = 20;
50
dataGridView.
Rows
[1].Height = 20;
51
dataGridView.
Rows
[2].Height = 20;
52
dataGridView.
Rows
[3].Height = 20;
53
dataGridView.
Rows
[4].Height = 20;
60
accRowHeightSum += dataGridView.
Rows
[i].AccessibilityObject.BoundingRectangle.Height;
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (11)
81
control.
Rows
.Add("Row1");
82
DataGridViewCell currentCell = control.
Rows
[0].Cells[0];
100
DataGridViewCell currentCell = control.
Rows
[0].Cells[0];
121
control.
Rows
.Add("Row1");
125
control.
Rows
[0].Cells[i].Selected = true;
142
control.
Rows
.Add("Row1");
144
DataGridViewCell selecetedCell1 = control.
Rows
[0].Cells[0];
179
control.
Rows
.Add("Row1");
181
DataGridViewCell selecetedCell1 = control.
Rows
[0].Cells[0];
200
control.
Rows
.Add("Row1");
201
DataGridViewCell selecetedCell1 = control.
Rows
[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (16)
59
control.
Rows
.Add("Row1");
60
DataGridViewRow row = control.
Rows
[0];
84
control.
Rows
.Add("Row1");
85
DataGridViewCell currentCell = control.
Rows
[0].Cells[0];
91
var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.
Rows
[0]], null);
103
DataGridViewCell currentCell = control.
Rows
[0].Cells[0];
109
var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.
Rows
[0]], null);
124
control.
Rows
.Add("Row1");
125
DataGridViewRow row = control.
Rows
[0];
147
control.
Rows
.Add("Row1");
148
DataGridViewRow row = control.
Rows
[0];
172
var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.
Rows
[0]], null);
186
control.
Rows
.Add("Row1");
187
DataGridViewRow row = control.
Rows
[0];
208
control.
Rows
.Add("Row1");
209
DataGridViewRow row = control.
Rows
[0];
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (2)
144
control.
Rows
.Add();
147
control.CurrentCell = control.
Rows
[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (1)
21
AccessibleObject expectedNextSibling = dataGridView.
Rows
[0].AccessibilityObject;
System\Windows\Forms\DataGridViewButtonCellTests.cs (27)
67
dataGridView.
Rows
.Add();
81
dataGridView.
Rows
.Add();
106
dataGridView.
Rows
.Add();
120
dataGridView.
Rows
.Add();
135
dataGridView.
Rows
.Add();
150
dataGridView.
Rows
.Add();
164
dataGridView.
Rows
.Add();
192
dataGridView.
Rows
.Add();
205
dataGridView.
Rows
.Add();
207
dataGridView.
Rows
[0].Cells[0].Value = "Test";
208
dataGridView.
Rows
[0].Cells[0].Style.Font = SystemFonts.DefaultFont;
209
dataGridView.
Rows
[0].Cells[0].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
210
dataGridView.
Rows
[0].Cells[0].Style.Padding = Padding.Empty;
211
dataGridView.
Rows
[0].Cells[0].Style.WrapMode = DataGridViewTriState.False;
217
g, dataGridView.
Rows
[0].Cells[0].Style, 0, Size.Empty);
229
dataGridView.
Rows
.Add();
244
dataGridView.
Rows
.Add();
260
dataGridView.
Rows
.Add();
328
dataGridView.
Rows
.Add();
347
dataGridView.
Rows
.Add();
361
dataGridView.
Rows
.Add();
386
dataGridView.
Rows
.Add();
411
dataGridView.
Rows
.Add();
430
dataGridView.
Rows
.Add();
447
dataGridView.
Rows
.Add();
463
dataGridView.
Rows
.Add();
496
dataGridView.
Rows
.Add();
System\Windows\Forms\DataGridViewButtonColumnTests.cs (2)
47
_dataGridView.
Rows
.Add(row);
91
_dataGridView.
Rows
.Add(row);
System\Windows\Forms\DataGridViewCellErrorTextNeededEventArgsTests.cs (1)
19
DataGridViewCell cell = dataGridView.
Rows
[0].Cells[0];
System\Windows\Forms\DataGridViewCellTests.ClipboardTests.cs (4)
67
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
82
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
111
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
129
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
System\Windows\Forms\DataGridViewCellTests.cs (172)
90
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
104
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
150
DataGridViewCell cell = control.
Rows
[0].Cells[0];
168
DataGridViewCell cell = control.
Rows
[0].Cells[0];
205
DataGridViewCell cell = control.
Rows
[0].Cells[0];
286
DataGridViewCell cell = control.
Rows
[0].Cells[0];
308
DataGridViewCell cell = control.
Rows
[0].Cells[0];
441
control.
Rows
.Add();
442
DataGridViewRow row = control.
Rows
[0];
483
control.
Rows
.Add();
484
DataGridViewRow row = control.
Rows
.SharedRow(0);
508
control.
Rows
.Add();
509
DataGridViewRow row = control.
Rows
[0];
551
control.
Rows
.Add();
554
DataGridViewRow row = control.
Rows
.SharedRow(0);
645
DataGridViewCell cell = control.
Rows
[0].Cells[0];
660
DataGridViewCell cell = control.
Rows
[0].Cells[0];
676
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
690
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
729
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
761
DataGridViewCell cell = control.
Rows
[0].Cells[0];
775
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
788
DataGridViewCell cell = control.
Rows
[0].Cells[0];
820
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
849
DataGridViewCell cell = control.
Rows
[0].Cells[0];
885
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1014
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1041
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1069
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1096
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1126
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1169
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1209
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1293
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1308
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1324
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1382
DataGridViewRow row = control.
Rows
[0];
1401
DataGridViewRow row = control.
Rows
.SharedRow(0);
1472
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1486
DataGridViewRow row = control.
Rows
[0];
1504
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1561
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1575
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1627
DataGridViewRow row = control.
Rows
[0];
1652
DataGridViewRow row = control.
Rows
.SharedRow(0);
1788
DataGridViewRow row = control.
Rows
[0];
1833
DataGridViewRow row = control.
Rows
[0];
1884
DataGridViewRow row = control.
Rows
[0];
1923
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1968
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2021
DataGridViewRow row = control.
Rows
[0];
2040
DataGridViewRow row = control.
Rows
.SharedRow(0);
2084
DataGridViewRow row = control.
Rows
[0];
2103
DataGridViewRow row = control.
Rows
.SharedRow(0);
2158
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2189
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2206
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2384
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2411
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2434
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2558
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2572
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2688
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2711
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2735
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2758
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2805
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2941
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2966
DataGridViewCell cell = control.
Rows
[0].Cells[0];
3038
control.
Rows
.Add(new DataGridViewRow());
3039
DataGridViewRow row = control.
Rows
[0];
3059
DataGridViewRow row = control.
Rows
.SharedRow(0);
3257
DataGridViewRow row = control.
Rows
[0];
3278
DataGridViewRow row = control.
Rows
[0];
3297
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
3482
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3619
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3633
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
3650
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3746
DataGridViewCell cell = control.
Rows
[0].Cells[0];
3763
DataGridViewCell cell = control.
Rows
[0].Cells[0];
3781
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
3802
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3916
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3945
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
3971
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
4010
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
4053
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
4096
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
4132
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
4261
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4284
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4304
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
4322
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4359
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4395
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4412
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
4461
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4502
control.
Rows
.Add();
4503
DataGridViewRow row = control.
Rows
[0];
4532
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4576
control.
Rows
.Add();
4577
DataGridViewRow row = control.
Rows
[0];
4610
DataGridViewRow row = control.
Rows
[0];
4628
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
4676
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4693
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
4742
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4756
dataGridView.
Rows
.Add();
4757
var cell = dataGridView.
Rows
[0].Cells[0];
4796
control.
Rows
.Add();
4797
control.
Rows
.Add();
4798
control.
Rows
.Add();
4799
control.
Rows
.Add();
4801
control.
Rows
[0].Cells[1].Value = "Text";
4802
control.
Rows
[1].Cells[2].Value = "Text";
4803
control.
Rows
[1].Cells[3].Value = "Text";
4804
control.
Rows
[2].Cells[0].Value = "Text";
4805
control.
Rows
[2].Cells[1].Value = "Text";
4806
control.
Rows
[2].Cells[3].Value = "Text";
4807
control.
Rows
[3].Cells[1].Value = "Text";
4808
control.
Rows
[3].Cells[2].Value = "Text";
4810
IList<Rectangle> neighbors00 = ((IKeyboardToolTip)control.
Rows
[0].Cells[0]).GetNeighboringToolsRectangles();
4811
Assert.True(neighbors00.Contains(control.
Rows
[0].Cells[1].AccessibilityObject.Bounds));
4812
Assert.False(neighbors00.Contains(control.
Rows
[1].Cells[1].AccessibilityObject.Bounds));
4813
Assert.False(neighbors00.Contains(control.
Rows
[1].Cells[0].AccessibilityObject.Bounds));
4815
IList<Rectangle> neighbors21 = ((IKeyboardToolTip)control.
Rows
[2].Cells[1]).GetNeighboringToolsRectangles();
4816
Assert.True(neighbors21.Contains(control.
Rows
[1].Cells[2].AccessibilityObject.Bounds));
4817
Assert.True(neighbors21.Contains(control.
Rows
[2].Cells[0].AccessibilityObject.Bounds));
4818
Assert.True(neighbors21.Contains(control.
Rows
[2].Cells[1].AccessibilityObject.Bounds));
4819
Assert.True(neighbors21.Contains(control.
Rows
[3].Cells[1].AccessibilityObject.Bounds));
4820
Assert.False(neighbors21.Contains(control.
Rows
[1].Cells[1].AccessibilityObject.Bounds));
4822
IList<Rectangle> neighbors33 = ((IKeyboardToolTip)control.
Rows
[3].Cells[3]).GetNeighboringToolsRectangles();
4823
Assert.True(neighbors33.Contains(control.
Rows
[2].Cells[3].AccessibilityObject.Bounds));
4824
Assert.True(neighbors33.Contains(control.
Rows
[3].Cells[2].AccessibilityObject.Bounds));
4825
Assert.False(neighbors33.Contains(control.
Rows
[2].Cells[2].AccessibilityObject.Bounds));
4873
DataGridViewRow row = control.
Rows
[0];
4894
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
4920
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
4934
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5005
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5021
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5036
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5050
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5071
control.
Rows
.Add();
5072
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5110
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5151
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5187
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5204
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5567
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5604
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5641
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5668
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5695
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5822
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5849
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5876
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5913
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5950
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5977
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
6004
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
6309
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
6331
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
6365
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
6382
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
6421
DataGridViewCell cell = control.
Rows
[0].Cells[0];
6432
DataGridViewImageCell cell = dataGridView.
Rows
[0].Cells[0].Should().BeOfType<DataGridViewImageCell>().Which;
6449
SubDataGridViewCheckBoxCell cell = (SubDataGridViewCheckBoxCell)dataGridView.
Rows
[0].Cells[0];
6520
var cell = (SubDataGridViewCheckBoxCell)dataGridView.
Rows
[0].Cells[0];
6525
dataGridView.
Rows
.Clear();
6526
dataGridView.
Rows
.Add();
System\Windows\Forms\DataGridViewComboBoxColumnTests.cs (20)
42
dataGridView.
Rows
.Add(2);
46
foreach (DataGridViewRow row in dataGridView.
Rows
)
71
dataGridView.
Rows
.Add(2);
76
foreach (DataGridViewRow row in dataGridView.
Rows
)
100
dataGridView.
Rows
.Add(2);
104
foreach (DataGridViewRow row in dataGridView.
Rows
)
127
dataGridView.
Rows
.Add(2);
131
foreach (DataGridViewRow row in dataGridView.
Rows
)
155
dataGridView.
Rows
.Add();
159
foreach (DataGridViewRow row in dataGridView.
Rows
)
183
dataGridView.
Rows
.Add(2);
187
foreach (DataGridViewRow row in dataGridView.
Rows
)
210
dataGridView.
Rows
.Add(2);
214
foreach (DataGridViewRow row in dataGridView.
Rows
)
251
dataGridView.
Rows
.Add(2);
255
foreach (DataGridViewRow row in dataGridView.
Rows
)
278
dataGridView.
Rows
.Add(2);
282
foreach (DataGridViewRow row in dataGridView.
Rows
)
307
dataGridView.
Rows
.Add(2);
311
foreach (DataGridViewRow row in dataGridView.
Rows
)
System\Windows\Forms\DataGridViewElementTests.cs (11)
63
control.
Rows
[0].Cells[0] = element;
93
control.
Rows
[0].Cells[0] = element;
115
control.
Rows
[0].Cells[0] = element;
145
control.
Rows
[0].Cells[0] = element;
167
control.
Rows
[0].Cells[0] = element;
197
control.
Rows
[0].Cells[0] = element;
219
control.
Rows
[0].Cells[0] = element;
249
control.
Rows
[0].Cells[0] = element;
291
control.
Rows
[0].Cells[0] = element;
321
control.
Rows
[0].Cells[0] = element;
343
control.
Rows
[0].Cells[0] = element;
System\Windows\Forms\DataGridViewHeaderCellTests.cs (108)
129
control.
Rows
.Add();
130
DataGridViewRow row = control.
Rows
[0];
177
control.
Rows
.Add();
178
DataGridViewRow row = control.
Rows
[0];
250
control.
Rows
.Add();
251
DataGridViewRow row = control.
Rows
.SharedRow(0);
283
control.
Rows
.Add();
284
DataGridViewRow row = control.
Rows
[0];
353
control.
Rows
.Add();
354
DataGridViewRow row = control.
Rows
[0];
418
control.
Rows
.Add();
419
DataGridViewRow row = control.
Rows
.SharedRow(0);
502
DataGridViewRow row = control.
Rows
[0];
539
DataGridViewRow row = control.
Rows
.SharedRow(0);
627
DataGridViewRow row = control.
Rows
[0];
649
DataGridViewRow row = control.
Rows
[0];
672
DataGridViewRow row = control.
Rows
[0];
712
DataGridViewRow row = control.
Rows
.SharedRow(0);
772
DataGridViewCell cell = control.
Rows
[0].Cells[0];
789
DataGridViewRow row = control.
Rows
[0];
842
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
938
DataGridViewRow row = control.
Rows
[0];
962
DataGridViewRow row = control.
Rows
[0];
1004
DataGridViewRow row = control.
Rows
[0];
1058
DataGridViewRow row = control.
Rows
.SharedRow(0);
1120
DataGridViewRow row = control.
Rows
[0];
1142
DataGridViewRow row = control.
Rows
[0];
1165
DataGridViewRow row = control.
Rows
[0];
1197
DataGridViewRow row = control.
Rows
.SharedRow(0);
1259
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1277
DataGridViewRow row = control.
Rows
[0];
1331
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1381
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1398
DataGridViewRow row = control.
Rows
[0];
1615
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1642
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1670
DataGridViewRow row = control.
Rows
[0];
1699
DataGridViewRow row = control.
Rows
[0];
1909
control.
Rows
.Add(new DataGridViewRow());
1910
DataGridViewRow row = control.
Rows
[0];
1934
control.
Rows
.Add(new DataGridViewRow());
1935
DataGridViewRow row = control.
Rows
[0];
1960
control.
Rows
.Add(new DataGridViewRow());
1961
DataGridViewRow row = control.
Rows
[0];
2009
DataGridViewRow row = control.
Rows
.SharedRow(0);
2282
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2305
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2363
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2381
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2418
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2513
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2554
control.
Rows
.Add();
2555
DataGridViewRow row = control.
Rows
[0];
2578
DataGridViewRow row = control.
Rows
[0];
2596
control.
Rows
.Add();
2597
DataGridViewRow row = control.
Rows
[0];
2664
control.
Rows
.Add();
2665
DataGridViewRow row = control.
Rows
[0];
2729
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2773
control.
Rows
.Add();
2774
DataGridViewRow row = control.
Rows
[0];
2807
DataGridViewRow row = control.
Rows
[0];
2836
control.
Rows
.Add();
2837
DataGridViewRow row = control.
Rows
[0];
2924
control.
Rows
.Add();
2925
DataGridViewRow row = control.
Rows
[0];
3004
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
3054
DataGridViewCell cell = control.
Rows
[0].Cells[0];
3072
DataGridViewRow row = control.
Rows
[0];
3120
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
3175
DataGridViewRow row = control.
Rows
[0];
3198
DataGridViewRow row = control.
Rows
[0];
3222
DataGridViewRow row = control.
Rows
[0];
3261
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3325
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3342
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3449
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3465
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3481
DataGridViewRow row = control.
Rows
[0];
3498
DataGridViewRow row = control.
Rows
[0];
3570
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3584
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3605
control.
Rows
.Add();
3606
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3644
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3685
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3755
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3804
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3888
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3956
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3995
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4037
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4078
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4185
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4211
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4228
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4268
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4296
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4336
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4364
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4396
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4426
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4483
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4509
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4567
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4594
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4611
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4660
DataGridViewCell cell = control.
Rows
[0].Cells[0];
System\Windows\Forms\DataGridViewImageCellTests.cs (9)
123
dataGridView.
Rows
.Add();
148
dataGridView.
Rows
.Add();
162
dataGridView.
Rows
.Add();
178
dataGridView.
Rows
.Add();
194
dataGridView.
Rows
.Add();
233
dataGridView.
Rows
.Add();
235
dataGridView.
Rows
[0].Cells[0] = dataGridViewImageCell;
261
dataGridView.
Rows
.Add();
263
dataGridView.
Rows
[0].Cells[0] = dataGridViewImageCell;
System\Windows\Forms\DataGridViewImageColumnTests.cs (12)
47
dataGridView.
Rows
.Add(3);
50
foreach (DataGridViewRow row in dataGridView.
Rows
)
60
foreach (DataGridViewRow row in dataGridView.
Rows
)
75
dataGridView.
Rows
.Add(2);
80
foreach (DataGridViewRow row in dataGridView.
Rows
)
142
dataGridView.
Rows
.Add(2);
147
foreach (DataGridViewRow row in dataGridView.
Rows
)
176
dataGridView.
Rows
.Add(2);
182
foreach (DataGridViewRow row in dataGridView.
Rows
)
194
foreach (DataGridViewRow row in dataGridView.
Rows
)
210
dataGridView.
Rows
.Add(2);
217
foreach (DataGridViewRow row in dataGridView.
Rows
)
System\Windows\Forms\DataGridViewLinkCellTests.cs (26)
21
dataGridView.
Rows
.Add();
36
dataGridView.
Rows
[0].Cells[0] = _cell;
58
dataGridView.
Rows
[0].Cells[0] = _cell;
120
dataGridView.
Rows
[0].Cells[0] = _cell;
215
dataGridView.
Rows
[0].Cells[0] = _cell;
216
string result = dataGridView.
Rows
[0].Cells[0].ToString();
275
dataGridView.
Rows
[0].Cells[0] = _cell;
277
Action action = () => dataGridView.
Rows
[0].Cells[0].GetContentBounds(-1);
294
dataGridView.
Rows
[0].Cells[0] = _cell;
299
ReferenceEquals(_cell, dataGridView.
Rows
[0].Cells[0]).Should().BeTrue();
310
dataGridView.
Rows
[0].Cells[0] = _cell;
321
dataGridView.
Rows
[0].Cells[0] = _cell;
336
dataGridView.
Rows
.Add();
337
dataGridView.
Rows
[0].Cells[0] = _cell;
352
dataGridView.
Rows
.Add();
354
dataGridView.
Rows
[0].Cells[0] = _cell;
366
dataGridView.
Rows
[0].Cells[0] = _cell;
381
dataGridView.
Rows
.Add();
383
dataGridView.
Rows
[0].Cells[0] = _cell;
415
dataGridView.
Rows
[0].Cells[0] = _cell;
428
dataGridView.
Rows
[0].Cells[0] = _cell;
521
dataGridView.
Rows
[0].Cells[0] = _cell;
549
dataGridView.
Rows
[0].Cells[0] = _cell;
577
dataGridView.
Rows
[0].Cells[0] = _cell;
626
dataGridView.
Rows
[0].Cells[0] = _cell;
641
dataGridView.
Rows
[0].Cells[0] = _cell;
System\Windows\Forms\DataGridViewLinkColumnTests.cs (19)
52
_dataGridView.
Rows
.Add(2);
57
foreach (DataGridViewRow row in _dataGridView.
Rows
)
67
_dataGridView.
Rows
.Add(2);
106
_dataGridView.
Rows
.Add(2);
111
foreach (DataGridViewRow row in _dataGridView.
Rows
)
121
_dataGridView.
Rows
.Add(2);
144
_dataGridView.
Rows
.Add(2);
149
foreach (DataGridViewRow row in _dataGridView.
Rows
)
159
_dataGridView.
Rows
.Add(2);
182
_dataGridView.
Rows
.Add(2);
205
_dataGridView.
Rows
.Add(2);
210
foreach (DataGridViewRow row in _dataGridView.
Rows
)
220
_dataGridView.
Rows
.Add(2);
243
_dataGridView.
Rows
.Add(2);
248
foreach (DataGridViewRow row in _dataGridView.
Rows
)
258
_dataGridView.
Rows
.Add(2);
281
_dataGridView.
Rows
.Add(2);
286
foreach (DataGridViewRow row in _dataGridView.
Rows
)
296
_dataGridView.
Rows
.Add(2);
System\Windows\Forms\DataGridViewRowErrorTextNeededEventArgsTests.cs (1)
19
DataGridViewRow row = dataGridView.
Rows
[0];
System\Windows\Forms\DataGridViewRowHeightInfoNeededEventArgsTests.cs (4)
22
DataGridViewRow row = dataGridView.
Rows
[0];
46
DataGridViewRow row = dataGridView.
Rows
[0];
74
DataGridViewRow row = dataGridView.
Rows
[0];
102
DataGridViewRow row = dataGridView.
Rows
[0];
System\Windows\Forms\DataGridViewRowTests.cs (199)
60
DataGridViewRow row = control.
Rows
[0];
76
DataGridViewRow row = control.
Rows
[0];
113
DataGridViewRow row = control.
Rows
[0];
144
DataGridViewRow row = control.
Rows
.SharedRow(0);
196
DataGridViewRow row = control.
Rows
[0];
217
DataGridViewRow row = control.
Rows
.SharedRow(0);
269
DataGridViewRow row = control.
Rows
[0];
316
DataGridViewRow row = control.
Rows
[0];
331
DataGridViewRow row = control.
Rows
[0];
343
DataGridViewRow row = control.
Rows
.SharedRow(0);
358
DataGridViewRow row = control.
Rows
.SharedRow(0);
370
DataGridViewRow row = control.
Rows
[0];
383
DataGridViewRow row = control.
Rows
.SharedRow(0);
447
DataGridViewRow row = control.
Rows
[0];
474
DataGridViewRow row = control.
Rows
[0];
497
DataGridViewRow row = control.
Rows
[0];
569
DataGridViewRow row = control.
Rows
.SharedRow(0);
581
DataGridViewRow row = control.
Rows
[0];
593
DataGridViewRow row = control.
Rows
.SharedRow(0);
646
DataGridViewRow row = control.
Rows
[0];
667
DataGridViewRow row = control.
Rows
[0];
687
DataGridViewRow row = control.
Rows
.SharedRow(0);
708
DataGridViewRow row = control.
Rows
.SharedRow(0);
746
DataGridViewRow row = control.
Rows
[0];
758
DataGridViewRow row = control.
Rows
.SharedRow(0);
770
DataGridViewRow row = control.
Rows
[0];
782
DataGridViewRow row = control.
Rows
.SharedRow(0);
817
DataGridViewRow row = control.
Rows
[0];
837
DataGridViewRow row = control.
Rows
[0];
887
DataGridViewRow row = control.
Rows
.SharedRow(0);
899
DataGridViewRow row = control.
Rows
[0];
912
DataGridViewRow row = control.
Rows
[0];
947
DataGridViewRow row = control.
Rows
[0];
977
DataGridViewRow row = control.
Rows
.SharedRow(0);
1022
DataGridViewRow row = control.
Rows
[0];
1043
DataGridViewRow row = control.
Rows
[0];
1064
DataGridViewRow row = control.
Rows
[0];
1110
DataGridViewRow row = control.
Rows
.SharedRow(0);
1138
control.
Rows
.Add();
1139
Assert.False(control.
Rows
[0].Frozen);
1152
control.
Rows
.Add();
1153
Assert.Throws<InvalidOperationException>(() => control.
Rows
.SharedRow(0).Frozen);
1196
control.
Rows
.Add();
1197
DataGridViewRow row = control.
Rows
[0];
1226
control.
Rows
.Add();
1227
DataGridViewRow row = control.
Rows
[0];
1271
control.
Rows
.Add();
1272
control.
Rows
.Add();
1273
control.
Rows
.Add();
1274
control.
Rows
.Add();
1275
DataGridViewRow row1 = control.
Rows
[0];
1276
DataGridViewRow row2 = control.
Rows
[1];
1278
DataGridViewRow row3 = control.
Rows
[2];
1279
DataGridViewRow row4 = control.
Rows
[3];
1325
DataGridViewRow row = control.
Rows
[0];
1369
control.
Rows
.Add();
1370
Assert.Throws<InvalidOperationException>(() => control.
Rows
.SharedRow(0).Frozen = value);
1394
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
1412
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
.SharedRow(0);
1441
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
1459
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
.SharedRow(0);
1574
DataGridViewRow row = control.
Rows
[0];
1611
DataGridViewRow row = control.
Rows
[0];
1651
DataGridViewRow row = control.
Rows
.SharedRow(0);
1688
DataGridViewRow row = control.
Rows
.SharedRow(0);
1727
DataGridViewRow row = control.
Rows
[0];
1793
DataGridViewRow row = control.
Rows
[0];
1810
DataGridViewRow row = control.
Rows
.SharedRow(0);
1841
DataGridViewRow row = control.
Rows
[0];
1876
DataGridViewRow row = control.
Rows
[0];
1959
DataGridViewRow row = control.
Rows
[0];
1979
DataGridViewRow row = control.
Rows
[0];
2052
DataGridViewRow row = control.
Rows
.SharedRow(0);
2171
control.
Rows
.Add(new SubDataGridViewRow());
2172
control.
Rows
.Add(new SubDataGridViewRow());
2174
DataGridViewRow row = control.
Rows
[index];
2198
DataGridViewRow row = control.
Rows
.SharedRow(0);
2210
DataGridViewRow row = control.
Rows
[0];
2222
DataGridViewRow row = control.
Rows
[0];
2234
DataGridViewRow row = control.
Rows
.SharedRow(0);
2246
DataGridViewRow row = control.
Rows
.SharedRow(0);
2262
DataGridViewRow row = control.
Rows
[0];
2279
DataGridViewRow row = control.
Rows
.SharedRow(0);
2310
DataGridViewRow row = control.
Rows
[0];
2345
DataGridViewRow row = control.
Rows
[0];
2424
DataGridViewRow row = control.
Rows
[0];
2446
DataGridViewRow row = control.
Rows
[0];
2500
DataGridViewRow row = control.
Rows
.SharedRow(0);
2528
DataGridViewRow row = control.
Rows
[0];
2542
DataGridViewRow row = control.
Rows
.SharedRow(0);
2581
DataGridViewRow row = control.
Rows
[0];
2607
DataGridViewRow row = control.
Rows
[0];
2653
DataGridViewRow row = control.
Rows
[0];
2683
DataGridViewRow row = control.
Rows
[0];
2724
DataGridViewRow row = control.
Rows
.SharedRow(0);
2739
DataGridViewRow row = control.
Rows
[0];
2753
DataGridViewRow row = control.
Rows
.SharedRow(0);
2765
DataGridViewRow row = control.
Rows
.SharedRow(0);
2821
DataGridViewRow row = control.
Rows
[0];
2841
DataGridViewRow row = control.
Rows
[0];
2884
DataGridViewRow row = control.
Rows
[0];
2913
DataGridViewRow row = control.
Rows
[0];
2925
DataGridViewRow row = control.
Rows
.SharedRow(0);
2955
DataGridViewRow row = control.
Rows
[0];
2981
control.
Rows
.Add(new DataGridViewRow());
2982
control.
Rows
.Add(new DataGridViewRow());
2983
DataGridViewRow row1 = control.
Rows
[0];
2984
DataGridViewRow row2 = control.
Rows
[1];
3015
control.
Rows
.Add(new DataGridViewRow());
3016
control.
Rows
.Add(new DataGridViewRow());
3017
DataGridViewRow row1 = control.
Rows
[0];
3018
DataGridViewRow row2 = control.
Rows
[1];
3050
DataGridViewRow row = control.
Rows
.SharedRow(0);
3062
DataGridViewRow row = control.
Rows
[0];
3074
DataGridViewRow row = control.
Rows
.SharedRow(0);
3086
DataGridViewRow row = control.
Rows
[0];
3098
DataGridViewRow row = control.
Rows
.SharedRow(0);
3143
DataGridViewRow row = control.
Rows
[0];
3164
DataGridViewRow row = control.
Rows
[0];
3186
DataGridViewRow row = control.
Rows
.SharedRow(0);
3207
DataGridViewRow row = control.
Rows
.SharedRow(0);
3228
DataGridViewRow row = control.
Rows
[0];
3240
DataGridViewRow row = control.
Rows
.SharedRow(0);
3285
DataGridViewRow row = control.
Rows
[0];
3313
DataGridViewRow row = control.
Rows
[0];
3354
DataGridViewRow row = control.
Rows
[0];
3371
DataGridViewRow row = control.
Rows
.SharedRow(0);
3726
DataGridViewRow row = control.
Rows
[0];
4019
DataGridViewRow source = control.
Rows
[0];
4126
DataGridViewRow row = control.
Rows
[0];
4207
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4230
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4246
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4275
DataGridViewRow row1 = control.
Rows
[0];
4278
DataGridViewRow row2 = control.
Rows
[1];
4300
DataGridViewRow row = control.
Rows
[0];
4337
DataGridViewRow row = control.
Rows
[0];
4370
DataGridViewRow row = control.
Rows
[0];
4382
DataGridViewRow row = control.
Rows
[0];
4408
DataGridViewRow row1 = control.
Rows
[0];
4410
DataGridViewRow row2 = control.
Rows
[1];
4428
DataGridViewRow row = control.
Rows
[0];
4462
DataGridViewRow row = control.
Rows
[0];
4494
DataGridViewRow row = control.
Rows
[0];
4506
DataGridViewRow row = control.
Rows
[0];
4525
DataGridViewRow row = control.
Rows
[0];
4539
DataGridViewRow row = control.
Rows
.SharedRow(0);
4564
DataGridViewRow row = control.
Rows
[0];
4592
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4616
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4642
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4666
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4690
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4714
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4738
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4763
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4788
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4807
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4854
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4884
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4924
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4956
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4970
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4984
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5010
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5038
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5062
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5088
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5112
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5136
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5160
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5184
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5209
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5234
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5251
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5265
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5279
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5293
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5320
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5338
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5358
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5382
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5408
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5432
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5456
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5480
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5504
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5529
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5554
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5572
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5587
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5602
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5617
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5642
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5658
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5676
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5704
DataGridViewRow row = control.
Rows
[0];
5739
DataGridViewRow row = control.
Rows
[0];
5751
DataGridViewRow row = control.
Rows
.SharedRow(0);
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (55)
32
control.
Rows
[0].Cells[0].Selected = true;
33
control.
Rows
[1].Cells[0].Selected = false;
34
control.
Rows
[2].Cells[0].Selected = true;
52
control.
Rows
[0].Cells[0].Selected = true;
53
control.
Rows
[1].Cells[0].Selected = false;
54
control.
Rows
[2].Cells[0].Selected = true;
57
Assert.Equal(control.
Rows
[2].Cells[0], collection[0]);
58
Assert.Equal(control.
Rows
[0].Cells[0], collection[1]);
83
control.
Rows
[0].Cells[0].Selected = true;
84
control.
Rows
[1].Cells[0].Selected = false;
85
control.
Rows
[2].Cells[0].Selected = true;
108
control.
Rows
[0].Cells[0].Selected = true;
109
control.
Rows
[1].Cells[0].Selected = false;
110
control.
Rows
[2].Cells[0].Selected = true;
113
Assert.True(collection.Contains(control.
Rows
[0].Cells[0]));
114
Assert.False(collection.Contains(control.
Rows
[1].Cells[0]));
115
Assert.True(collection.Contains(control.
Rows
[2].Cells[0]));
154
control.
Rows
[0].Cells[0].Selected = true;
155
control.
Rows
[1].Cells[0].Selected = false;
156
control.
Rows
[2].Cells[0].Selected = true;
161
Assert.Equal([1, control.
Rows
[2].Cells[0], control.
Rows
[0].Cells[0]], array);
204
control.
Rows
[0].Cells[0].Selected = true;
205
control.
Rows
[1].Cells[0].Selected = false;
206
control.
Rows
[2].Cells[0].Selected = true;
226
control.
Rows
[0].Cells[0].Selected = true;
227
control.
Rows
[1].Cells[0].Selected = false;
228
control.
Rows
[2].Cells[0].Selected = true;
232
Assert.Equal(control.
Rows
[2].Cells[0], iList[0]);
233
Assert.Equal(control.
Rows
[0].Cells[0], iList[1]);
259
control.
Rows
[0].Cells[0].Selected = true;
260
control.
Rows
[1].Cells[0].Selected = false;
261
control.
Rows
[2].Cells[0].Selected = true;
331
control.
Rows
[0].Cells[0].Selected = true;
332
control.
Rows
[1].Cells[0].Selected = false;
333
control.
Rows
[2].Cells[0].Selected = true;
339
Assert.Equal([1, control.
Rows
[2].Cells[0], control.
Rows
[0].Cells[0]], array);
368
control.
Rows
[0].Cells[0].Selected = true;
369
control.
Rows
[1].Cells[0].Selected = false;
370
control.
Rows
[2].Cells[0].Selected = true;
374
Assert.True(iList.Contains(control.
Rows
[0].Cells[0]));
375
Assert.False(iList.Contains(control.
Rows
[1].Cells[0]));
376
Assert.True(iList.Contains(control.
Rows
[2].Cells[0]));
409
control.
Rows
[0].Cells[0].Selected = true;
410
control.
Rows
[1].Cells[0].Selected = false;
411
control.
Rows
[2].Cells[0].Selected = true;
421
Assert.Same(control.
Rows
[2].Cells[0], enumerator.Current);
424
Assert.Same(control.
Rows
[0].Cells[0], enumerator.Current);
460
control.
Rows
[0].Cells[0].Selected = true;
461
control.
Rows
[1].Cells[0].Selected = false;
462
control.
Rows
[2].Cells[0].Selected = true;
466
Assert.Equal(1, iList.IndexOf(control.
Rows
[0].Cells[0]));
467
Assert.Equal(-1, iList.IndexOf(control.
Rows
[1].Cells[0]));
468
Assert.Equal(0, iList.IndexOf(control.
Rows
[2].Cells[0]));
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (55)
31
control.
Rows
[0].Selected = true;
32
control.
Rows
[1].Selected = false;
33
control.
Rows
[2].Selected = true;
50
control.
Rows
[0].Selected = true;
51
control.
Rows
[1].Selected = false;
52
control.
Rows
[2].Selected = true;
55
Assert.Equal(control.
Rows
[2], collection[0]);
56
Assert.Equal(control.
Rows
[0], collection[1]);
80
control.
Rows
[0].Selected = true;
81
control.
Rows
[1].Selected = false;
82
control.
Rows
[2].Selected = true;
104
control.
Rows
[0].Selected = true;
105
control.
Rows
[1].Selected = false;
106
control.
Rows
[2].Selected = true;
109
Assert.True(collection.Contains(control.
Rows
[0]));
110
Assert.False(collection.Contains(control.
Rows
[1]));
111
Assert.True(collection.Contains(control.
Rows
[2]));
149
control.
Rows
[0].Selected = true;
150
control.
Rows
[1].Selected = false;
151
control.
Rows
[2].Selected = true;
156
Assert.Equal([1, control.
Rows
[2], control.
Rows
[0]], array);
198
control.
Rows
[0].Selected = true;
199
control.
Rows
[1].Selected = false;
200
control.
Rows
[2].Selected = true;
219
control.
Rows
[0].Selected = true;
220
control.
Rows
[1].Selected = false;
221
control.
Rows
[2].Selected = true;
225
Assert.Equal(control.
Rows
[2], iList[0]);
226
Assert.Equal(control.
Rows
[0], iList[1]);
251
control.
Rows
[0].Selected = true;
252
control.
Rows
[1].Selected = false;
253
control.
Rows
[2].Selected = true;
322
control.
Rows
[0].Selected = true;
323
control.
Rows
[1].Selected = false;
324
control.
Rows
[2].Selected = true;
330
Assert.Equal([1, control.
Rows
[2], control.
Rows
[0]], array);
358
control.
Rows
[0].Selected = true;
359
control.
Rows
[1].Selected = false;
360
control.
Rows
[2].Selected = true;
364
Assert.True(iList.Contains(control.
Rows
[0]));
365
Assert.False(iList.Contains(control.
Rows
[1]));
366
Assert.True(iList.Contains(control.
Rows
[2]));
398
control.
Rows
[0].Selected = true;
399
control.
Rows
[1].Selected = false;
400
control.
Rows
[2].Selected = true;
410
Assert.Same(control.
Rows
[2], enumerator.Current);
413
Assert.Same(control.
Rows
[0], enumerator.Current);
448
control.
Rows
[0].Selected = true;
449
control.
Rows
[1].Selected = false;
450
control.
Rows
[2].Selected = true;
454
Assert.Equal(1, iList.IndexOf(control.
Rows
[0]));
455
Assert.Equal(-1, iList.IndexOf(control.
Rows
[1]));
456
Assert.Equal(0, iList.IndexOf(control.
Rows
[2]));
System\Windows\Forms\DataGridViewTests.cs (40)
2354
dataGridView.
Rows
.Add("DefaultCellStyle", customFont1.ToString());
2355
dataGridView.
Rows
.Add("ColumnHeadersDefaultCellStyle", customFont2.ToString());
2356
dataGridView.
Rows
.Add("RowHeadersDefaultCellStyle", customFont3.ToString());
2815
Assert.Equal(rowsCount + 1, control.
Rows
.Count);
2821
Assert.Empty(control.
Rows
);
2855
Assert.Equal(rowsCount1 + 1, control.
Rows
.Count); // + 1 is the new DGV row
2861
Assert.Equal(rowsCount2 + 1, control.
Rows
.Count); // + 1 is the new DGV row
2869
Assert.Equal(rowsCount2 + 1, control.
Rows
.Count); // + 1 is the new DGV row
3389
_dataGridView.
Rows
.Add();
3390
_dataGridView.
Rows
.Add();
3413
_dataGridView.
Rows
.Add();
3414
_dataGridView.
Rows
.Add();
3441
_dataGridView.
Rows
.Add();
3442
_dataGridView.
Rows
.Add();
3446
_dataGridView.
Rows
[0].Selected = true;
3451
_dataGridView.
Rows
[1].Selected = true;
3467
_dataGridView.
Rows
.Add("B");
3468
_dataGridView.
Rows
.Add("A");
3607
dataGridView.
Rows
.Add("A");
3608
dataGridView.
Rows
.Add("B");
3633
_dataGridView.
Rows
.Add("A");
3634
_dataGridView.
Rows
.Add("B");
3661
_dataGridView.
Rows
.Add("A");
3662
_dataGridView.
Rows
.Add("B");
3686
dataGridView.
Rows
.Add("A");
3687
dataGridView.
Rows
.Add("B");
3690
DataGridViewCellFormattingEventArgs cellFormattingEventArgs = new(0, 0, dataGridView.
Rows
[0].Cells[0].Value, dataGridView.
Rows
[0].Cells[0].ValueType, dataGridView.
Rows
[0].Cells[0].InheritedStyle);
3695
cellFormattingEventArgs = new(0, 1, dataGridView.
Rows
[1].Cells[0].Value, dataGridView.
Rows
[1].Cells[0].ValueType, dataGridView.
Rows
[1].Cells[0].InheritedStyle);
3713
dataGridView.
Rows
.Add("A");
3714
dataGridView.
Rows
.Add("B");
3740
dataGridView.
Rows
.Add("A");
3741
dataGridView.
Rows
.Add("B");
3767
dataGridView.
Rows
.Add("A");
3768
dataGridView.
Rows
.Add("B");
4066
_dataGridView.CurrentCell = _dataGridView.
Rows
[_dataGridView.NewRowIndex].Cells[0];
4070
_dataGridView.CurrentCell = _dataGridView.
Rows
[_dataGridView.NewRowIndex].Cells[1];
System\Windows\Forms\DataGridViewTests.Rendering.cs (5)
145
dataGridView.
Rows
.Add(nameof(DataGridView.DefaultCellStyle), customCellStyleFont.ToString());
146
dataGridView.
Rows
.Add(nameof(DataGridView.ColumnHeadersDefaultCellStyle), customColumnHeaderFont.ToString());
147
dataGridView.
Rows
.Add(nameof(DataGridView.RowHeadersDefaultCellStyle), customRowHeaderFont.ToString());
148
for (int i = 0; i < dataGridView.
Rows
.Count; i++)
150
dataGridView.
Rows
[i].HeaderCell.Value = $"Row {i + 1}";
System\Windows\Forms\DataGridViewTextBoxColumnTests.cs (6)
63
_dataGridView.
Rows
.Add();
64
_dataGridView.
Rows
.Add();
68
foreach (DataGridViewRow row in _dataGridView.
Rows
)
77
_dataGridView.
Rows
.Add();
78
_dataGridView.
Rows
.Add();
82
foreach (DataGridViewRow row in _dataGridView.
Rows
)
System.Windows.Forms.UI.IntegrationTests (1)
DataGridViewTests.cs (1)
77
dataGridView.CurrentCell = dataGridView.
Rows
[0].Cells[1];
TestPassApp (2)
DataControls.cs (2)
35
dataGridView1.
Rows
[0].Cells[0].Value = "Rose";
36
dataGridView1.CurrentCell = dataGridView1.
Rows
[0].Cells[0];
WinFormsControlsTest (11)
DataGridViewInVirtualModeTest.cs (3)
123
_rowInEdit = dataGridView1.
Rows
.Count - 1;
130
if (e.RowIndex >= _customers.Count && e.RowIndex != dataGridView1.
Rows
.Count - 1)
163
if (_rowInEdit == dataGridView1.
Rows
.Count - 2 && _rowInEdit == _customers.Count)
DataGridViewTest.cs (8)
26
dataGridView1.
Rows
.Add(new DataGridViewRow() { Visible = false });
27
dataGridView1.
Rows
.Add("DefaultCellStyle", dataGridView1.DefaultCellStyle.Font.ToString());
28
dataGridView1.
Rows
.Add("ColumnHeadersDefaultCellStyle", dataGridView1.ColumnHeadersDefaultCellStyle.Font.ToString());
29
dataGridView1.
Rows
.Add("RowHeadersDefaultCellStyle", dataGridView1.RowHeadersDefaultCellStyle.Font.ToString());
33
foreach (DataGridViewRow row in dataGridView1.
Rows
)
75
dataGridView1.
Rows
[0].Cells[1].Value = s_fonts[_cellFontIndex];
78
dataGridView1.
Rows
[1].Cells[1].Value = s_fonts[_columnHeaderFontIndex];
81
dataGridView1.
Rows
[2].Cells[1].Value = s_fonts[_rowHeaderFontIndex];