2475 references to Rows
Accessibility_Core_App (2)
DataControls.cs (2)
35
dataGridView1.
Rows
[0].Cells[0].Value = "Rose";
36
dataGridView1.CurrentCell = dataGridView1.
Rows
[0].Cells[0];
PresentationUI (13)
MS\Internal\Documents\RMPublishingDialog.cs (1)
250
foreach (DataGridViewRow row in rightsTable.
Rows
)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (12)
136
Rows
.Insert(0, CreateDataGridViewRow(user, isViewerOwner));
142
rowIndex =
Rows
.Add(CreateDataGridViewRow(user, isViewerOwner));
150
UpdateAllowOwner(
Rows
[rowIndex]);
157
UpdateRowFromEveryone(
Rows
[_everyoneRowIndex],
Rows
[rowIndex]);
187
this.
Rows
.Remove(row);
293
foreach (DataGridViewRow row in
Rows
)
496
if ((e != null) && (e.RowIndex > 0) && (e.RowIndex <
Rows
.Count) &&
499
DataGridViewDisableCheckBoxCell cell =
Rows
[e.RowIndex].Cells[e.ColumnIndex] as DataGridViewDisableCheckBoxCell;
620
for (int rowIndex = _firstNonOwnerRow; rowIndex <
Rows
.Count; rowIndex++)
622
DataGridViewRow currentRow =
Rows
[rowIndex];
782
everyoneRow =
Rows
[_everyoneRowIndex];
System.Windows.Forms (937)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (12)
81
if (index < owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible))
83
int actualRowIndex = owner.
Rows
.DisplayIndexToRowIndex(index);
84
return owner.
Rows
[actualRowIndex].AccessibilityObject;
87
index -= owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
119
int childCount = owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
167
return owner.
Rows
[hti.RowIndex].Cells[hti.ColumnIndex].AccessibilityObject;
180
return owner.
Rows
[hti.RowIndex].HeaderCell.AccessibilityObject;
281
int rowIndex = owner.
Rows
.DisplayIndexToRowIndex(i);
282
result[i] = owner.
Rows
[rowIndex].HeaderCell.AccessibilityObject;
322
row = owner.
Rows
.DisplayIndexToRowIndex(row);
324
return owner.
Rows
[row].Cells[column].AccessibilityObject;
334
return this.TryGetOwnerAs(out DataGridView? owner) ? owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible) : base.RowCount;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (46)
1708
Debug.Assert(_ptCurrentCell.Y <
Rows
.Count);
1709
DataGridViewRow dataGridViewRow =
Rows
[_ptCurrentCell.Y]; // un-sharing row
1738
if (!Columns[value.ColumnIndex].Visible || (
Rows
.GetRowState(value.RowIndex) & DataGridViewElementStates.Visible) == 0)
1776
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y <
Rows
.Count);
1777
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(_ptCurrentCell.Y);
1797
bool previousVisibleRowExists = (
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible) != -1);
1815
bool nextVisibleRowExists = (
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible) != -1);
1849
Debug.Assert(_ptCurrentCell.Y <
Rows
.Count);
1851
return
Rows
[_ptCurrentCell.Y];
2281
return
Rows
[firstDisplayedCellAddress.Y].Cells[firstDisplayedCellAddress.X]; // un-shares the row of first displayed cell
2302
&& firstDisplayedCell.RowIndex <
Rows
.Count
2313
if (!
Rows
[firstDisplayedCell.RowIndex].Frozen)
2333
Y =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
2418
int firstDisplayedRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2421
if ((
Rows
.GetRowState(firstDisplayedRowIndex) & DataGridViewElementStates.Frozen) == 0
2525
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value,
Rows
.Count);
2527
if ((
Rows
.GetRowState(value) & DataGridViewElementStates.Visible) == 0)
2532
if ((
Rows
.GetRowState(value) & DataGridViewElementStates.Frozen) != 0)
2548
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2580
int rowsToScroll =
Rows
.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, value);
2919
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2930
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2940
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
3094
int rowCount =
Rows
.Count;
3114
int rowCount =
Rows
.Count;
3117
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.ReadOnly) == 0);
3170
get =>
Rows
.Count;
3180
if (value ==
Rows
.Count)
3188
Rows
.Clear();
3190
else if (value <
Rows
.Count)
3193
while (value <
Rows
.Count)
3195
int currentRowCount =
Rows
.Count;
3196
Rows
.RemoveAt(currentRowCount - (AllowUserToAddRowsInternal ? 2 : 1));
3197
if (
Rows
.Count >= currentRowCount)
3214
int rowsToAdd = value -
Rows
.Count;
3217
Rows
.Add(rowsToAdd);
3589
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
3640
foreach (DataGridViewRow dataGridViewRow in
Rows
) // un-shares all rows!
3659
DataGridViewRow dataGridViewRow =
Rows
[rowIndex]; // un-shares the selected row
3721
strc.Add(
Rows
[rowIndex]); // un-shares the selected row
4006
DataGridViewRow row =
Rows
[rowIndex];
4011
DataGridViewRow row =
Rows
[rowIndex];
4022
DataGridViewRow row =
Rows
[rowIndex];
4027
DataGridViewRow row =
Rows
[rowIndex];
4092
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
4153
&&
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)
28
if (cellAddress.Y < 0 || cellAddress.Y >=
Rows
.Count)
33
int visibleRowIndex =
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, cellAddress.Y);
74
Rows
.AddInternal(newRow: true, values: null);
75
NewRowIndex =
Rows
.Count - 1;
80
DataGridViewRowEventArgs dgvRowEvent = new(
Rows
[NewRowIndex]);
301
Debug.Assert(rowIndex <
Rows
.Count);
315
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
371
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
381
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
391
dataGridViewCell =
Rows
.SharedRow(rowIndex).HeaderCell;
404
Rows
.SharedRow(rowIndex).GetHeightInfo(rowIndex, out int height, out int minimumHeight);
419
Rows
[rowIndex].Thickness = preferredThickness; // un-sharing the resized row
451
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
453
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
459
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
468
dataGridViewCell =
Rows
.SharedRow(rowIndex).HeaderCell;
481
if (
Rows
.SharedRow(rowIndex).Height < preferredHeight)
483
Rows
[rowIndex].Height = preferredHeight; // un-sharing the row to be resized
498
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
502
rowIndex =
Rows
.GetNextRow(rowIndex,
512
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
930
int totalVisibleRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible);
931
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
932
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
937
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
938
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
1306
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1308
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1324
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
1328
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1329
rowIndex =
Rows
.GetNextRow(rowIndex,
1343
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1344
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
1352
int rowAboveFirstVisibleScrollingRow =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
1364
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1365
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
1381
if (Columns.Count == 0 &&
Rows
.Count == 0)
1387
&& (
Rows
.GetFirstRow(DataGridViewElementStates.Visible) == -1
1399
allCellsSelected = _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1406
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1408
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1410
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1433
allCellsSelected = _selectedBandIndexes.Count *
Rows
.Count + _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1445
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1447
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1449
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1469
allCellsSelected = _selectedBandIndexes.Count * Columns.Count + _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1476
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1478
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1481
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
1482
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
1484
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1954
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
2027
rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2031
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex,
Rows
.SharedRow(rowIndex).GetHeight(rowIndex)))
2032
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width);
2041
rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2044
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2051
rowIndex =
Rows
.GetNextRow(
2061
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2068
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
2077
for (rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2079
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
2082
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex,
Rows
.SharedRow(rowIndex).GetHeight(rowIndex)))
2083
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width);
2129
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
2148
&& rowIndex !=
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
2155
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2189
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2193
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp,
Rows
.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)))
2194
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width);
2203
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2206
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndexTmp);
2213
rowIndexTmp =
Rows
.GetNextRow(
2223
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndexTmp);
2230
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
2239
for (rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2241
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible))
2244
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp,
Rows
.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)))
2245
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width);
2277
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
2295
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2314
Rows
[rowIndex].ThicknessInternal = preferredThickness; // un-sharing the resized row
2321
Rows
[rowIndex].ThicknessInternal = preferredThickness; // un-sharing the resized row
2325
Rows
[rowIndex].Thickness = preferredThickness; // un-sharing the resized row
2406
int rowIndex =
Rows
.GetNextRow(rowIndexStart - 1, DataGridViewElementStates.Visible);
2414
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
2580
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y <
Rows
.Count);
2777
clip.Y = topEdge +
Rows
.SharedRow(index).GetMinimumHeight(index) - mouseBarOffset - 1;
3136
Debug.Assert((AllowUserToAddRowsInternal &&
Rows
.Count == 1) || (!AllowUserToAddRowsInternal &&
Rows
.Count == 0));
3138
if (
Rows
.Count > 0)
3142
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
3213
Debug.Assert(
Rows
.GetFirstRow(DataGridViewElementStates.Visible) == 0);
3488
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException,
Rows
.Count);
3497
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException,
Rows
.Count);
4154
if (rowIndex >=
Rows
.Count)
4160
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
4178
if (rowIndex > -1 && (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
4277
int indexTmp =
Rows
.Count;
4288
DataGridViewElementStates rowState =
Rows
.GetRowState(indexTmp);
4296
indexTmp =
Rows
.GetPreviousRow(
4304
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
4314
indexTmp =
Rows
.GetPreviousRow(
4320
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
4333
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
4339
height +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
4340
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
4352
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
4353
return
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) +
4354
Rows
.SharedRow(lastVisibleRowIndex).GetHeight(lastVisibleRowIndex);
4542
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
4543
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
4777
int nRows =
Rows
.Count;
4795
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
4803
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
4839
&& ((
Rows
.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Frozen) != 0
4840
|| (
Rows
.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Visible) == 0))
4847
if ((
Rows
.GetRowState(i) & DataGridViewElementStates.Visible) != 0)
4849
cy +=
Rows
.SharedRow(i).GetHeight(i);
4864
if ((
Rows
.GetRowState(i) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.Visible)) == DataGridViewElementStates.Visible)
4866
int height =
Rows
.SharedRow(i).GetHeight(i);
5226
Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <=
Rows
.Count);
5228
int previousRowIndex =
Rows
.GetPreviousRow(
5234
&& (
Rows
.GetRowState(previousRowIndex) & DataGridViewElementStates.Frozen) == 0
5241
int nextRowIndex =
Rows
.GetNextRow(
5247
&& (
Rows
.GetRowState(nextRowIndex) & DataGridViewElementStates.Frozen) != 0
5260
int rowIndexTmp =
Rows
.GetPreviousRow(rowIndexInserted, DataGridViewElementStates.Visible);
5263
previousRowFrozen = (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5267
rowIndexTmp =
Rows
.GetNextRow(rowIndexInserted - 1, DataGridViewElementStates.Visible);
5271
nextRowFrozen = (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5294
if (((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) != 0 && !frozenStateChanging)
5295
|| ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0 && frozenStateChanging))
5298
rowIndexTmp =
Rows
.GetPreviousRow(rowIndex,
5302
int dataGridViewRowFirst =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
5311
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, true);
5312
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp,
5320
rowIndexTmp =
Rows
.GetNextRow(rowIndex,
5328
rowIndexTmp =
Rows
.GetNextRow(dataGridViewRowLast,
5344
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, false);
5345
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp,
5354
int rowsCount =
Rows
.Count;
5357
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
5380
int rowsCount =
Rows
.Count;
5383
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
5455
Debug.Assert(
Rows
.Count > 1);
5458
DataGridViewRowCancelEventArgs dgvrce = new(
Rows
[NewRowIndex]);
5466
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
5467
DataGridViewRow dataGridViewRow =
Rows
[NewRowIndex];
5468
Rows
.RemoveAtInternal(NewRowIndex, force: false);
5478
NewRowIndex =
Rows
.Count - 1;
5479
Debug.Assert((
Rows
.GetRowState(NewRowIndex) & DataGridViewElementStates.Visible) != 0);
5482
OnDefaultValuesNeeded(new DataGridViewRowEventArgs(
Rows
[NewRowIndex]));
5809
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5820
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5834
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5881
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5889
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5897
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5905
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5913
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
6329
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(_trackRow);
6341
dataGridViewRow =
Rows
[_trackRow]; // Un-sharing row
6397
Debug.Assert(rowIndex <
Rows
.Count);
6398
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
6399
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0);
6407
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6439
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6441
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
6444
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6452
rowIndexTmp =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6453
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6455
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6456
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6465
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6468
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6470
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6471
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6476
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6480
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6482
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
6485
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6490
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6492
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6493
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6502
int firstDisplayedFrozenRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6505
?
Rows
.GetNextRow(
6515
?
Rows
.GetNextRow(
6527
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6533
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6534
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6540
&& rowIndexTmp <
Rows
.Count
6546
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6552
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6553
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6564
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible, DisplayedBandsInfo.OldNumDisplayedScrollingRows - 1);
6567
rowIndexTmp =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
6575
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6577
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6580
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible);
6586
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6589
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, DisplayedBandsInfo.OldNumDisplayedFrozenRows - 1);
6592
rowIndexTmp =
Rows
.GetLastRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6600
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6602
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6605
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible);
6612
for (rowIndexTmp = 0; rowIndexTmp <
Rows
.Count; rowIndexTmp++)
6614
DataGridViewElementStates rowStateDbg =
Rows
.GetRowState(rowIndexTmp);
6626
if (!ColumnHeadersVisible &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 0)
6873
return cellCount + _selectedBandIndexes.Count *
Rows
.Count;
6910
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
6912
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
6931
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
6948
return
Rows
.Count * Columns.Count;
6957
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
6959
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
6960
if (!visibleRequired || (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0)
6987
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
7064
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
7109
Debug.Assert(rowIndex >= -1 && rowIndex <
Rows
.Count);
7112
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
7153
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) == 0)
7160
includeColumnHeaders = (
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Selected) == -1);
7292
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7294
int nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7305
cellContent =
Rows
.SharedRow(rowIndex)
7323
cellContent =
Rows
.SharedRow(rowIndex)
7342
cellContent =
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(
7362
cellContent =
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(
7379
cellContent =
Rows
.SharedRow(rowIndex)
7397
cellContent =
Rows
.SharedRow(rowIndex)
7417
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7455
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
7586
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
7600
cellContent =
Rows
.SharedRow(rowIndex)
7618
cellContent =
Rows
.SharedRow(rowIndex)
7637
cellContent =
Rows
.SharedRow(rowIndex)
7659
cellContent =
Rows
.SharedRow(rowIndex)
7678
cellContent =
Rows
.SharedRow(rowIndex)
7696
cellContent =
Rows
.SharedRow(rowIndex)
7716
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
7743
selectedVisibleRowExists =
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) != 0;
7749
selectedVisibleCellExists = selectedVisibleColumnExists &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) != 0;
7824
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0)
7843
firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
7844
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
8021
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
8046
cellContent =
Rows
.SharedRow(rowIndex)
8066
cellContent =
Rows
.SharedRow(rowIndex)
8086
cellContent =
Rows
.SharedRow(rowIndex)
8116
cellContent =
Rows
.SharedRow(rowIndex)
8567
int visibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
8568
int frozenVisibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
8600
&& (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0
8602
&& (
Rows
.GetRowState(_trackRowEdge) & DataGridViewElementStates.Frozen) != 0
8604
&& (
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Frozen) == 0)
8608
int firstUnfrozenRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
8638
&& ((
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0
8639
|| (_trackRowEdge != -1 && (
Rows
.GetRowState(_trackRowEdge) & DataGridViewElementStates.Frozen) == 0))
8657
if (VerticalScrollingOffset +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
8701
int firstRowIndex = hti._row >= 0 ? hti._row :
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
8819
if (((_ptAnchorCell.Y != -1 && (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0)
8820
|| (_ptCurrentCell.Y != -1 && (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0))
8842
if (VerticalScrollingOffset +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
9015
int preferredHeight = Math.Min(minimumHeight +
Rows
.GetRowsHeight(DataGridViewElementStates.Visible), proposedConstraints.Height);
9028
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9035
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
9037
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) == 0)
9046
for (indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9060
cy +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9061
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9081
cy +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9082
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
9089
int displayHeight = cutOverflow && cy +
Rows
.SharedRow(indexTmp).GetHeight(indexTmp) > data.Bottom
9091
:
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9124
int indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9127
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9135
indexTmp =
Rows
.GetNextRow(indexTmp,
9143
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0
9144
&& (
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9148
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9156
indexTmp =
Rows
.GetNextRow(indexTmp,
9200
Debug.Assert(index >= 0 && index <
Rows
.Count);
9201
Debug.Assert((
Rows
.GetRowState(index) & DataGridViewElementStates.Visible) != 0);
9205
int indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9213
y +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9214
indexTmp =
Rows
.GetNextRow(indexTmp,
9236
indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
9242
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0
9243
&& (
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9252
y +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9253
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
9260
indexTmp =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow,
9265
y -=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9271
indexTmp =
Rows
.GetPreviousRow(indexTmp,
9429
int rowHeight =
Rows
.SharedRow(hti._row).GetHeight(hti._row);
9446
indexTmp =
Rows
.GetPreviousRow(hti._row, DataGridViewElementStates.Visible);
9571
int rowHeight =
Rows
.SharedRow(hti._row).GetHeight(hti._row);
9585
indexTmp =
Rows
.GetPreviousRow(hti._row,
9610
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
9699
dataGridViewCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; // un-share the edited cell
9787
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9854
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9861
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
9875
Rows
.InvalidateCachedRowsHeights();
9890
Debug.Assert(lo <
Rows
.Count);
9891
Debug.Assert(hi <
Rows
.Count);
9893
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 0)
9904
if ((
Rows
.GetRowState(lo) & DataGridViewElementStates.Visible) == 0)
9906
lo =
Rows
.GetNextRow(lo, DataGridViewElementStates.Visible);
9916
if ((
Rows
.GetRowState(hi) & DataGridViewElementStates.Visible) == 0)
9918
hi =
Rows
.GetPreviousRow(hi, DataGridViewElementStates.Visible);
9929
if ((
Rows
.GetRowState(lo) & DataGridViewElementStates.Frozen) != 0)
9941
&&
Rows
.GetRowCount(
9966
if ((
Rows
.GetRowState(hi) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen)
9978
else if (
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0)
9993
if ((
Rows
.GetRowState(i) & DataGridViewElementStates.Visible) == 0)
10046
return columnIndex >= Columns.Count || rowIndex >=
Rows
.Count || columnIndex == -1 || rowIndex == -1;
10051
return rowIndex >=
Rows
.Count || rowIndex == -1;
10162
int totalVisibleRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible);
10167
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
10168
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
10188
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10189
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10217
&& DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10218
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10274
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10393
&& (includeNewRow || !AllowUserToAddRowsInternal || firstDisplayedCellAddress.Y !=
Rows
.Count - 1))
10594
Debug.Assert(rowIndex ==
Rows
.Count - 1);
10598
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
10601
DataGridViewRow dataGridViewRowDebug =
Rows
.SharedRow(rowIndex);
10612
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10628
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
10642
int rowHeight =
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
10643
Rows
.SharedRow(rowIndex).CachedThickness = rowHeight;
10660
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 1)
10790
if (
Rows
.Count > 0)
10801
DataGridViewRow newRow =
Rows
[NewRowIndex];
10808
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10810
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10830
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10832
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10870
if (
Rows
.Count > 0 && dataGridViewColumn.CellType is null)
10937
if (
Rows
.Count > 0)
10945
DataGridViewRow newRow =
Rows
[NewRowIndex];
10959
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10961
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10980
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10982
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
11007
CorrectRowFrozenState(dataGridViewRow, rowState,
Rows
.Count);
11076
CorrectRowFrozenStates(dataGridViewRows, rowIndexInserted:
Rows
.Count);
11332
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
11334
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
11337
int rowHeight =
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
11338
Rows
.SharedRow(rowIndex).CachedThickness = rowHeight;
11512
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(e.RowIndex,
Rows
.Count, "e.RowIndex");
11552
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
11585
rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
11635
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
11659
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
11703
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
11731
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
11732
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
11819
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
11820
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
11849
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
11869
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
11932
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
12099
if (hti._row >=
Rows
.Count)
12101
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
12125
&& IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row)
12280
&& (Columns[hti._col].Selected || IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row))
12391
if (isControlDown && ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0))
12403
&& _ptAnchorCell.Y > -1 && (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
12459
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0)
12462
((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0));
12485
&& (((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)
12486
|| IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row))
12612
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
12634
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
12653
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
12710
DataGridViewRow dataGridViewRow =
Rows
[e.RowIndex];
13048
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
13049
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
13094
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
13095
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
13188
Rows
.ClearInternal(recreateNewRow: false);
13205
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Displayed);
13208
_lstRows.Add(
Rows
[rowIndex]);
13212
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Displayed);
13269
if (Columns.Count != 0 &&
Rows
.Count == 0)
13688
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
14435
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.ReadOnly) == 0
14655
dataGridViewRow =
Rows
[index];
14776
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
14797
&& (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.ReadOnly) == 0
14841
Debug.Assert(!
Rows
[dataGridViewCell.RowIndex].ReadOnly);
14972
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
14973
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
15308
forceCurrentCellSelection:
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 1);
15411
if (
Rows
.Count > 0)
15422
DataGridViewRow newRow =
Rows
[NewRowIndex];
15429
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
15431
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
15450
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
15452
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
15672
DataGridViewRow dataGridViewRow =
Rows
[_ptCurrentCell.Y];
15730
DataGridViewRow dataGridViewRow =
Rows
[_ptCurrentCell.Y];
15763
DataGridViewRow dataGridViewRow =
Rows
[_ptCurrentCell.Y];
15884
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
15905
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
15916
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
15973
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16023
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16035
if (rowIndex <
Rows
.Count)
16045
Debug.Assert(
Rows
[rowIndex].Resizable == DataGridViewTriState.True);
16147
&& _ptMouseEnteredCell.Y >= -1 && _ptMouseEnteredCell.Y <
Rows
.Count)
16369
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16571
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
16573
&& _vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16579
Debug.Assert(totalVisibleFrozenHeight ==
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
16584
if (_vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16851
&& !
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X].ReadOnly) // Un-shares the row
17094
Rows
.ClearInternal(recreateNewRow: false);
17100
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
17102
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
17227
Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted <
Rows
.Count);
17229
if (rowIndexDeleted >= 0 && rowIndexDeleted <
Rows
.Count)
17231
foreach (DataGridViewCell cell in
Rows
[rowIndexDeleted].Cells)
17246
int rowIndexPrevious =
Rows
.GetPreviousRow(rowIndexDeleted, DataGridViewElementStates.Visible);
17247
int rowIndexNext =
Rows
.GetNextRow(rowIndexDeleted, DataGridViewElementStates.Visible);
17251
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
17252
newY = rowIndexNext > -1 && rowIndexNext <
Rows
.Count - 1 ? rowIndexNext - 1 : rowIndexPrevious;
17525
&&
Rows
.Count == 0
17550
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
17604
if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex <
Rows
.Count)
17649
if (rowIndex <
Rows
.Count && columnIndex < Columns.Count)
17658
DataGridViewRowEventArgs dgvre = new(
Rows
[NewRowIndex]);
17690
if (calledAddNewOnTheDataConnection && rowIndex >
Rows
.Count - 1)
17693
rowIndex = Math.Min(rowIndex,
Rows
.Count - 1);
17715
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
17716
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
17770
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
17858
rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
17876
&& rowIndex ==
Rows
.GetFirstRow(DataGridViewElementStates.Visible)))
17930
if (isControlDown && ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0))
17998
if (hti._row >=
Rows
.Count)
18000
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
18025
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Visible) == 0)
18038
&& (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
18103
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0)
18106
((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0));
18310
if (rowIndex <
Rows
.Count && columnIndex < Columns.Count)
18322
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
18323
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18410
SelectRowRange(
Rows
.GetNextRow(_trackRowEdge, DataGridViewElementStates.Visible),
18416
SelectRowRange(
Rows
.GetNextRow(hti._row, DataGridViewElementStates.Visible),
18422
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18429
Rows
.GetPreviousRow(_trackRowEdge, DataGridViewElementStates.Visible),
18436
Rows
.GetPreviousRow(hti._row, DataGridViewElementStates.Visible),
18443
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18449
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18452
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18459
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18461
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18552
newState =
Rows
.GetRowState(rowIndex);
18595
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Displayed, false);
18606
bool rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
18632
dataGridViewRow =
Rows
[rowIndex];
18646
if (rowVisible &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 1)
18722
if (dataGridViewCell is not null && rowIndex <
Rows
.Count && columnIndex < Columns.Count)
18724
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18769
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
18770
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18848
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
18854
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
19073
int rowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
19122
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19126
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19133
Debug.Assert((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0);
19134
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19142
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
19143
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19153
Debug.Assert((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Visible) != 0);
19159
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19166
Debug.Assert((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0);
19167
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
19175
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
19176
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
19197
int visibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Displayed);
19485
if (Columns.Count > 0 ||
Rows
.Count > 0)
19552
indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19566
int rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19567
Rows
.SharedRow(indexTmp).CachedThickness = rowHeight;
19571
rowBounds.Height =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19579
indexTmpNext =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19583
dataGridViewRow =
Rows
.SharedRow(indexTmp);
19588
Rows
.GetRowState(indexTmp),
19607
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
19608
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0);
19622
int rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19623
Rows
.SharedRow(indexTmp).CachedThickness = rowHeight;
19627
rowBounds.Height =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19635
indexTmpNext =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
19639
dataGridViewRow =
Rows
.SharedRow(indexTmp);
19644
Rows
.GetRowState(indexTmp),
19761
DataGridViewRow newRow =
Rows
.SharedRow(NewRowIndex);
19767
newRow =
Rows
[NewRowIndex]; // un-share the 'new row'.
19813
Columns[_ptCurrentCell.X].Width,
Rows
.SharedRow(_ptCurrentCell.Y).GetHeight(_ptCurrentCell.Y));
19827
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
19829
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19938
if (rowIndex == NewRowIndex || rowIndex >=
Rows
.Count)
19944
DataGridViewRowCancelEventArgs dgvrce = new(
Rows
[rowIndex]);
19948
DataGridViewRow dataGridViewRow =
Rows
[rowIndex];
19951
int dataGridRowsCount =
Rows
.Count;
19953
int dataGridViewRowsCount =
Rows
.Count; // the number of rows in the dataGridView row collection not counting the AddNewRow
20001
if (dataGridRowsCount !=
Rows
.Count)
20014
Rows
.RemoveAtInternal(rowIndex, force: false);
20146
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
20156
nextVisibleRowIndex =
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
20695
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20732
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20784
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20844
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20942
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21069
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
21070
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
21152
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21173
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21190
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21544
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
21626
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21647
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21664
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22070
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
22924
nextScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
22935
if ((
Rows
.GetRowState(nextScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
22939
int firstDisplayedScrollingRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
22947
jumpRows =
Rows
.GetRowCount(DataGridViewElementStates.Visible,
22968
nextScreenVisibleRowIndexTmp =
Rows
.GetNextRow(nextScreenVisibleRowIndex, DataGridViewElementStates.Visible);
23106
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23133
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23183
previousScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
23194
int jumpRows = (
Rows
.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0
23207
previousScreenVisibleRowIndexTmp =
Rows
.GetPreviousRow(previousScreenVisibleRowIndex, DataGridViewElementStates.Visible);
23216
if ((
Rows
.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23219
int firstDisplayedScrollingRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
23229
previousScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
23362
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23389
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23444
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
24306
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) == 0)
24524
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
24533
previousVisibleRowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
24956
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
24988
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25029
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25077
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25159
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25325
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
25326
Rows
.RemoveAtInternal(NewRowIndex, force: false);
25355
dataGridViewCurrentCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X];
25380
dataGridViewCurrentCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X];
25399
Rows
.ClearInternal(recreateNewRow: false);
25520
Rows
.ClearInternal(recreateNewRow: true);
25544
Rows
.AddInternal(RowTemplateClone);
25548
Rows
.AddCopiesInternal(0, rowsCount - 1);
25597
foreach (DataGridViewRow row in
Rows
)
25915
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
25917
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
25919
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
25938
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
25947
Debug.Assert(rowIndex <
Rows
.Count);
25949
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
26194
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
26195
Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow <
Rows
.Count);
26197
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
26254
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
26256
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0)
26269
rowsToScroll =
Rows
.GetRowCount(DataGridViewElementStates.Visible, rowIndex, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26276
int yRowBottomEdge = GetRowYFromIndex(rowIndex) +
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
26279
yRowBottomEdge -=
Rows
.SharedRow(firstDisplayedScrollingRow).GetHeight(firstDisplayedScrollingRow);
26283
firstDisplayedScrollingRow =
Rows
.GetNextRow(firstDisplayedScrollingRow, DataGridViewElementStates.Visible);
26311
Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >=
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
26319
int frozenRowsThickness =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
26342
if (EditingControl is not null && (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
26370
int firstVisibleScrollingRow =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
26372
int newScrolledOffRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26391
deltaY -=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26392
newFirstVisibleScrollingRow =
Rows
.GetNextRow(
26409
deltaY = -
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26410
rows =
Rows
.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26423
newFirstVisibleScrollingRow =
Rows
.GetPreviousRow(
26429
deltaY +=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26457
deltaY =
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26460
newFirstVisibleScrollingRow =
Rows
.GetNextRow(newFirstVisibleScrollingRow, DataGridViewElementStates.Visible);
26467
deltaY +=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26473
newFirstVisibleScrollingRow =
Rows
.GetPreviousRow(
26478
deltaY = -
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26481
int scrollingRowTmp =
Rows
.GetPreviousRow(newFirstVisibleScrollingRow,
26486
deltaY -=
Rows
.SharedRow(scrollingRowTmp).GetHeight(scrollingRowTmp);
26508
scrollHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26509
rowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26514
scrollHeight = -
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26515
rowCount = -
Rows
.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26546
int rowIndex = 0, maxRowIndex =
Rows
.Count;
26550
dataGridViewRow =
Rows
[rowIndex];
26567
int rowIndex = 0, maxRowIndex =
Rows
.Count;
26570
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
26610
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
26651
if (index >=
Rows
.Count)
26653
index -=
Rows
.Count;
26659
return
Rows
.SharedRow(index).Cells[columnIndex];
26686
return
Rows
.SharedRow(rowIndex).Cells[index];
26738
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
26756
&& !IsSharedCellVisible(
Rows
.SharedRow(rowIndex).Cells[columnIndex], rowIndex))
26774
Debug.Assert(rowIndex >= 0 && columnIndex < Columns.Count && rowIndex <
Rows
.Count);
26818
currentCell =
Rows
.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX];
26822
currentCell =
Rows
[oldCurrentCellY].Cells[oldCurrentCellX];
26902
if (rowIndex >=
Rows
.Count)
26933
currentCell =
Rows
[rowIndex].Cells[columnIndex];
26941
if (oldCurrentCellX < Columns.Count && oldCurrentCellY <
Rows
.Count)
26946
if (oldCurrentCellY != _ptCurrentCell.Y && RowHeadersVisible && oldCurrentCellY <
Rows
.Count)
27030
currentCell =
Rows
.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX];
27034
currentCell =
Rows
[oldCurrentCellY].Cells[oldCurrentCellX];
27104
if (oldCurrentCellX < Columns.Count && oldCurrentCellY <
Rows
.Count)
27109
if (RowHeadersVisible && oldCurrentCellY <
Rows
.Count)
27327
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
27460
Debug.Assert(columnIndex >= 0 && rowIndex >= 0 && columnIndex < Columns.Count && rowIndex <
Rows
.Count);
27463
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
27464
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27467
DataGridViewCell dataGridViewCell =
Rows
[rowIndex].Cells[columnIndex];
27491
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27496
for (int row = rowIndex + 1; row <
Rows
.Count; row++)
27498
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27506
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false);
27509
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27516
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27569
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
27571
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27589
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, true);
27594
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false);
27610
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
27613
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
27614
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27617
DataGridViewCell dataGridViewCell =
Rows
[rowIndex].Cells[columnIndex];
27640
if (
Rows
.Count > BulkPaintThreshold)
27654
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27659
for (int row = rowIndex + 1; row <
Rows
.Count; row++)
27661
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27686
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, false);
27689
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27696
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27724
if (!Columns[columnIndex].Visible || (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
27859
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
27862
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
27868
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0)
27871
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
28056
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28061
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
28072
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, true);
28079
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, false);
28230
int visibleFrozenRows =
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28233
int rowVFIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28235
Rows
.SetRowState(rowVFIndex, DataGridViewElementStates.Frozen, false);
28236
Debug.Assert(
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0);
28269
Rows
.Sort(comparer!, direction == ListSortDirection.Ascending);
28297
int rowVIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28301
rowVIndex =
Rows
.GetNextRow(rowVIndex, DataGridViewElementStates.Visible);
28306
Rows
.SetRowState(rowVIndex, DataGridViewElementStates.Frozen, true);
28414
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28421
if (_vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28445
int firstDisplayedScrollingRowHeight =
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow);
28481
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28502
nextVisibleRowIndex =
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
28642
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28663
previousVisibleRowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
28671
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
28852
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28866
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28921
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28932
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexStart,
Rows
.Count);
28935
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexEnd,
Rows
.Count);
28965
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28967
Rows
.InvalidateCachedRowsHeights();
28969
bool rowVisible = (rowIndex >= 0 && (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
29008
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
29104
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
29108
if (((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29110
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed);
29113
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
29127
if (((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29129
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed);
29132
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
29159
&& _ptMouseEnteredCell.Y <
Rows
.Count)
29186
&& _ptMouseEnteredCell.Y <
Rows
.Count)
29287
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29297
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29312
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29322
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29341
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29364
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29403
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29427
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29448
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29484
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29540
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29553
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29587
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29603
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29630
Rows
.GetNextRow(anchorRowIndex, DataGridViewElementStates.Visible),
29684
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29700
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29734
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29750
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29777
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29798
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29807
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29824
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29833
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29972
dataGridViewCell =
Rows
.SharedRow(hti._row).Cells[hti._col];
29980
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)
809
DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
810
DataGridView.
Rows
.InvalidateCachedRowsHeight(elementState);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
486
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);
3043
if (e.ColumnIndex < DataGridView.Columns.Count && e.RowIndex < DataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (8)
63
: _owner.DataGridView.
Rows
.GetVisibleIndex(_owner.OwningRow) + RowStartIndex;
467
if (_owner.OwningRow.Index == _owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
475
int previousVisibleRow = _owner.DataGridView.
Rows
.GetPreviousRow(_owner.OwningRow.Index, DataGridViewElementStates.Visible);
476
return _owner.DataGridView.
Rows
[previousVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject;
480
if (_owner.OwningRow.Index == _owner.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
486
int nextVisibleRow = _owner.DataGridView.
Rows
.GetNextRow(_owner.OwningRow.Index, DataGridViewElementStates.Visible);
487
return _owner.DataGridView.
Rows
[nextVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject;
739
? _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)
833
rowIndex < DataGridView.
Rows
.Count)
971
Debug.Assert((rowIndex >= 0) && (rowIndex < DataGridView.
Rows
.Count));
973
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)
949
for (rowIndex = dataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
951
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
953
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
974
rowIndex = dataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
977
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
993
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex,
1002
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
1018
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
1068
foreach (DataGridViewRow row in DataGridView.
Rows
)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1774
DataGridViewElementStates rowState = DataGridView.
Rows
.GetRowState(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (11)
52
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
118
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
164
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
207
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
251
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
295
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
336
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
399
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
442
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
483
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
525
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)
736
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)
1211
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1238
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1287
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1368
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1371
if (DataGridView is null || DataGridView.
Rows
.SharedRow(rowIndex).Index != -1)
1382
return DataGridView.
Rows
.GetRowState(rowIndex);
1394
DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
1395
DataGridView.
Rows
.InvalidateCachedRowsHeight(elementState);
1423
DataGridViewRow sharedRow = dataGridView.
Rows
.SharedRow(rowIndex);
1465
sharedRow = dataGridView.
Rows
.SharedRow(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (5)
36
? dataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow) + 1
37
: dataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow)
99
? _owningDataGridViewRow.DataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow) + RowStartIndex
342
if (_owningDataGridViewRow.Index != _owningDataGridViewRow.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
356
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 (1505)
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (1)
32
DataGridViewCell cell = dataGridView.
Rows
[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (210)
207
DataGridViewCell cell = dataGridView.
Rows
[0].Cells[0];
226
dataGridView.
Rows
.Add();
228
for (int i = 0; i < dataGridView.
Rows
.Count; i++)
230
for (int j = 0; j < dataGridView.
Rows
[i].Cells.Count; j++)
232
AccessibleObject expected = dataGridView.
Rows
[i].Cells[j].AccessibilityObject;
327
dataGridView.
Rows
.Add(); // 1
328
VARIANT isOffscreen = dataGridView.
Rows
[1].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId);
331
dataGridView.
Rows
.Add(); // 2
332
dataGridView.
Rows
.Add(); // 3
333
dataGridView.
Rows
.Add(); // 4
334
isOffscreen = dataGridView.
Rows
[4].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId);
383
dataGridView.
Rows
[0].Cells[0].ReadOnly = isReadOnly;
387
foreach (DataGridViewRow row in dataGridView.
Rows
)
408
dataGridView.
Rows
[0].ReadOnly = isReadOnly;
412
foreach (DataGridViewRow row in dataGridView.
Rows
)
437
foreach (DataGridViewRow row in dataGridView.
Rows
)
580
dataGridView.
Rows
.Add("Test");
581
dataGridView.
Rows
[0].Visible = false;
633
dataGridView.
Rows
.Add("Test 1");
634
dataGridView.
Rows
.Add("Test 2");
636
dataGridView.
Rows
[0].Visible = false;
652
dataGridView.
Rows
.Add("Test 1");
653
dataGridView.
Rows
.Add("Test 2");
655
dataGridView.
Rows
[1].Visible = false;
671
dataGridView.
Rows
.Add("Test 1");
672
dataGridView.
Rows
.Add("Test 2");
674
dataGridView.
Rows
[0].Visible = false;
675
dataGridView.
Rows
[1].Visible = false;
690
dataGridView.
Rows
.Add("Test 1");
691
dataGridView.
Rows
.Add("Test 2");
693
dataGridView.
Rows
[0].Visible = false;
708
dataGridView.
Rows
.Add("Test 1");
709
dataGridView.
Rows
.Add("Test 2");
711
dataGridView.
Rows
[1].Visible = false;
726
dataGridView.
Rows
.Add("Test 1");
727
dataGridView.
Rows
.Add("Test 2");
729
dataGridView.
Rows
[0].Visible = false;
730
dataGridView.
Rows
[1].Visible = false;
746
dataGridView.
Rows
.Add("Test 1");
747
dataGridView.
Rows
.Add("Test 2");
749
dataGridView.
Rows
[0].Visible = false;
752
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0));
767
dataGridView.
Rows
.Add("Test 1");
768
dataGridView.
Rows
.Add("Test 2");
770
dataGridView.
Rows
[1].Visible = false;
773
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0));
788
dataGridView.
Rows
.Add("Test 1");
789
dataGridView.
Rows
.Add("Test 2");
791
dataGridView.
Rows
[0].Visible = false;
792
dataGridView.
Rows
[1].Visible = false;
809
dataGridView.
Rows
.Add("Test 1");
810
dataGridView.
Rows
.Add("Test 2");
812
dataGridView.
Rows
[0].Visible = false;
818
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1));
832
dataGridView.
Rows
.Add("Test 1");
833
dataGridView.
Rows
.Add("Test 2");
835
dataGridView.
Rows
[1].Visible = false;
841
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1));
855
dataGridView.
Rows
.Add("Test 1");
856
dataGridView.
Rows
.Add("Test 2");
858
dataGridView.
Rows
[0].Visible = false;
859
dataGridView.
Rows
[1].Visible = false;
879
dataGridView.
Rows
.Add("Test 1");
880
dataGridView.
Rows
.Add("Test 2");
882
dataGridView.
Rows
[0].Visible = false;
884
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
885
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
899
dataGridView.
Rows
.Add("Test 1");
900
dataGridView.
Rows
.Add("Test 2");
902
dataGridView.
Rows
[1].Visible = false;
904
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
905
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
919
dataGridView.
Rows
.Add("Test 1");
920
dataGridView.
Rows
.Add("Test 2");
922
dataGridView.
Rows
[0].Visible = false;
923
dataGridView.
Rows
[1].Visible = false;
939
dataGridView.
Rows
.Add("Test 1");
940
dataGridView.
Rows
.Add("Test 2");
943
dataGridView.
Rows
[0].Visible = false;
946
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
959
dataGridView.
Rows
.Add("Test 1");
960
dataGridView.
Rows
.Add("Test 2");
963
dataGridView.
Rows
[1].Visible = false;
966
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
979
dataGridView.
Rows
.Add("Test 1");
980
dataGridView.
Rows
.Add("Test 2");
983
dataGridView.
Rows
[0].Visible = false;
984
dataGridView.
Rows
[1].Visible = false;
1001
dataGridView.
Rows
.Add("Test 1");
1002
dataGridView.
Rows
.Add("Test 2");
1004
dataGridView.
Rows
[0].Visible = false;
1006
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild));
1007
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
1021
dataGridView.
Rows
.Add("Test 1");
1022
dataGridView.
Rows
.Add("Test 2");
1024
dataGridView.
Rows
[1].Visible = false;
1026
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild));
1027
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
1041
dataGridView.
Rows
.Add("Test 1");
1042
dataGridView.
Rows
.Add("Test 2");
1044
dataGridView.
Rows
[0].Visible = false;
1045
dataGridView.
Rows
[1].Visible = false;
1061
dataGridView.
Rows
.Add("Test 1");
1062
dataGridView.
Rows
.Add("Test 2");
1065
dataGridView.
Rows
[0].Visible = false;
1068
Assert.Equal(dataGridView.
Rows
[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
1081
dataGridView.
Rows
.Add("Test 1");
1082
dataGridView.
Rows
.Add("Test 2");
1085
dataGridView.
Rows
[1].Visible = false;
1088
Assert.Equal(dataGridView.
Rows
[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
1101
dataGridView.
Rows
.Add("Test 1");
1102
dataGridView.
Rows
.Add("Test 2");
1105
dataGridView.
Rows
[0].Visible = false;
1106
dataGridView.
Rows
[1].Visible = false;
1208
dataGridView.
Rows
.Add("Test 1");
1209
dataGridView.
Rows
.Add("Test 2");
1210
dataGridView.
Rows
.Add("Test 3");
1216
Assert.Equal(dataGridView.
Rows
[0].HeaderCell.AccessibilityObject, rowHeaders[0]);
1217
Assert.Equal(dataGridView.
Rows
[1].HeaderCell.AccessibilityObject, rowHeaders[1]);
1218
Assert.Equal(dataGridView.
Rows
[2].HeaderCell.AccessibilityObject, rowHeaders[2]);
1227
dataGridView.
Rows
.Add("Test 1");
1228
dataGridView.
Rows
.Add("Test 2");
1229
dataGridView.
Rows
.Add("Test 3");
1230
dataGridView.
Rows
[0].Visible = false;
1236
Assert.Equal(dataGridView.
Rows
[1].HeaderCell.AccessibilityObject, rowHeaders[0]);
1237
Assert.Equal(dataGridView.
Rows
[2].HeaderCell.AccessibilityObject, rowHeaders[1]);
1246
dataGridView.
Rows
.Add("Test 1");
1247
dataGridView.
Rows
.Add("Test 2");
1248
dataGridView.
Rows
.Add("Test 3");
1249
dataGridView.
Rows
[1].Visible = false;
1255
Assert.Equal(dataGridView.
Rows
[0].HeaderCell.AccessibilityObject, rowHeaders[0]);
1256
Assert.Equal(dataGridView.
Rows
[2].HeaderCell.AccessibilityObject, rowHeaders[1]);
1265
dataGridView.
Rows
.Add("Test 1");
1266
dataGridView.
Rows
.Add("Test 2");
1267
dataGridView.
Rows
.Add("Test 3");
1268
dataGridView.
Rows
[2].Visible = false;
1274
Assert.Equal(dataGridView.
Rows
[0].HeaderCell.AccessibilityObject, rowHeaders[0]);
1275
Assert.Equal(dataGridView.
Rows
[1].HeaderCell.AccessibilityObject, rowHeaders[1]);
1284
dataGridView.
Rows
.Add("Test 1");
1285
dataGridView.
Rows
.Add("Test 2");
1286
dataGridView.
Rows
.Add("Test 3");
1287
dataGridView.
Rows
[0].Visible = false;
1288
dataGridView.
Rows
[1].Visible = false;
1289
dataGridView.
Rows
[2].Visible = false;
1305
dataGridView.
Rows
.Add();
1306
dataGridView.
Rows
.Add();
1307
dataGridView.
Rows
.Add();
1309
dataGridView.
Rows
[0].Visible = false;
1311
int rowCount = dataGridView.
Rows
.Count;
1320
: dataGridView.
Rows
[i + 1].Cells[j + 1].AccessibilityObject;
1336
dataGridView.
Rows
.Add();
1337
dataGridView.
Rows
.Add();
1338
dataGridView.
Rows
.Add();
1340
dataGridView.
Rows
[1].Visible = false;
1342
int rowCount = dataGridView.
Rows
.Count;
1347
AccessibleObject expected = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1351
expected = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1357
expected = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
1361
expected = dataGridView.
Rows
[2].Cells[2].AccessibilityObject;
1379
dataGridView.
Rows
.Add();
1380
dataGridView.
Rows
.Add();
1381
dataGridView.
Rows
.Add();
1383
dataGridView.
Rows
[2].Visible = false;
1385
int rowCount = dataGridView.
Rows
.Count;
1394
: dataGridView.
Rows
[i].Cells[j].AccessibilityObject;
1415
AccessibleObject accessibleObjectCell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1416
AccessibleObject accessibleObjectCell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1417
AccessibleObject accessibleObjectCell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1438
AccessibleObject accessibleObjectCell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1439
AccessibleObject accessibleObjectCell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1460
AccessibleObject accessibleObjectCell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1461
AccessibleObject accessibleObjectCell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1482
AccessibleObject accessibleObjectCell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1483
AccessibleObject accessibleObjectCell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1550
dataGridView.
Rows
.Add("1");
1551
dataGridView.
Rows
.Add("2");
1552
dataGridView.
Rows
.Add("3");
1563
dataGridView.
Rows
.Add("1");
1564
dataGridView.
Rows
.Add("2");
1565
dataGridView.
Rows
.Add("3");
1566
dataGridView.
Rows
[0].Visible = false;
1577
dataGridView.
Rows
.Add("1");
1578
dataGridView.
Rows
.Add("2");
1579
dataGridView.
Rows
.Add("3");
1580
dataGridView.
Rows
[0].Visible = false;
1581
dataGridView.
Rows
[1].Visible = false;
1592
dataGridView.
Rows
.Add("1");
1593
dataGridView.
Rows
.Add("2");
1594
dataGridView.
Rows
.Add("3");
1595
dataGridView.
Rows
[0].Visible = false;
1596
dataGridView.
Rows
[1].Visible = false;
1597
dataGridView.
Rows
[2].Visible = false;
1608
dataGridView.
Rows
.Add("1");
1609
dataGridView.
Rows
.Add("2");
1610
dataGridView.
Rows
.Add("3");
1621
dataGridView.
Rows
.Add("1");
1622
dataGridView.
Rows
.Add("2");
1623
dataGridView.
Rows
.Add("3");
1624
dataGridView.
Rows
[0].Visible = false;
1635
dataGridView.
Rows
.Add("1");
1636
dataGridView.
Rows
.Add("2");
1637
dataGridView.
Rows
.Add("3");
1638
dataGridView.
Rows
[0].Visible = false;
1639
dataGridView.
Rows
[1].Visible = false;
1650
dataGridView.
Rows
.Add("1");
1651
dataGridView.
Rows
.Add("2");
1652
dataGridView.
Rows
.Add("3");
1653
dataGridView.
Rows
[0].Visible = false;
1654
dataGridView.
Rows
[1].Visible = false;
1655
dataGridView.
Rows
[2].Visible = false;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (148)
53
accCellWidthSum += dataGridView.
Rows
[0].Cells[i].AccessibilityObject.BoundingRectangle.Width;
56
int accRowWidth = dataGridView.
Rows
[0].AccessibilityObject.BoundingRectangle.Width;
84
accCellWidthSum += dataGridView.
Rows
[0].Cells[i].AccessibilityObject.BoundingRectangle.Width;
87
int accRowWidth = dataGridView.
Rows
[0].AccessibilityObject.BoundingRectangle.Width;
231
dataGridView.
Rows
.Add("1");
232
dataGridView.
Rows
.Add("2");
233
dataGridView.
Rows
.Add("3");
235
AccessibleObject accessibleObject = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
249
dataGridView.
Rows
.Add("1");
250
dataGridView.
Rows
.Add("2");
251
dataGridView.
Rows
.Add("3");
252
dataGridView.
Rows
[0].Visible = false;
254
AccessibleObject accessibleObject = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
268
dataGridView.
Rows
.Add("1");
269
dataGridView.
Rows
.Add("2");
270
dataGridView.
Rows
.Add("3");
271
dataGridView.
Rows
[0].Visible = false;
272
dataGridView.
Rows
[1].Visible = false;
274
AccessibleObject accessibleObject = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
645
dataGridView.
Rows
.Add(new DataGridViewRow());
646
dataGridView.
Rows
.Add(new DataGridViewRow());
648
dataGridView.
Rows
[0].Cells[0].ReadOnly = true;
649
dataGridView.
Rows
[1].ReadOnly = true;
650
dataGridView.
Rows
[2].ReadOnly = false;
652
foreach (DataGridViewRow row in dataGridView.
Rows
)
679
dataGridView.
Rows
.Add(new DataGridViewRow());
681
DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
694
dataGridView.
Rows
.Add(new DataGridViewRow());
696
DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
709
dataGridView.
Rows
.Add(new DataGridViewRow());
711
DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
739
dataGridView.
Rows
.Add(new DataGridViewRow());
740
DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
771
dataGridView.
Rows
.Add("1");
772
dataGridView.
Rows
.Add("2");
773
dataGridView.
Rows
.Add("3");
775
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
776
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].Cells[0].AccessibilityObject;
777
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
790
dataGridView.
Rows
.Add("1");
791
dataGridView.
Rows
.Add("2");
792
dataGridView.
Rows
.Add("3");
793
dataGridView.
Rows
[0].Visible = false;
795
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
796
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].Cells[0].AccessibilityObject;
797
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
810
dataGridView.
Rows
.Add("1");
811
dataGridView.
Rows
.Add("2");
812
dataGridView.
Rows
.Add("3");
813
dataGridView.
Rows
[1].Visible = false;
815
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
816
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].Cells[0].AccessibilityObject;
817
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
830
dataGridView.
Rows
.Add("1");
831
dataGridView.
Rows
.Add("2");
832
dataGridView.
Rows
.Add("3");
833
dataGridView.
Rows
[2].Visible = false;
835
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
836
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].Cells[0].AccessibilityObject;
837
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].Cells[0].AccessibilityObject;
871
dataGridView.
Rows
.Add("1");
873
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
874
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
875
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
891
dataGridView.
Rows
.Add("1");
893
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
894
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
895
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
911
dataGridView.
Rows
.Add("1");
913
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
914
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
915
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
931
dataGridView.
Rows
.Add("1");
933
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
934
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
935
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
953
dataGridView.
Rows
.Add("1");
955
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
956
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
957
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
976
dataGridView.
Rows
.Add("1");
978
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
979
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
980
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
999
dataGridView.
Rows
.Add("1");
1001
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1002
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1003
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1022
dataGridView.
Rows
.Add("1");
1024
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1025
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1026
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1039
dataGridView.
Rows
.Add(new DataGridViewRow());
1041
DataGridViewCellAccessibleObject dataGridViewCellAccessibleObject = new(dataGridView.
Rows
[0].Cells[0]);
1055
DataGridViewRow row = dataGridView.
Rows
[0];
1085
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1086
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1087
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1088
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1104
DataGridViewRow row = dataGridView.
Rows
[0];
1123
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1124
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1125
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1142
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1143
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1144
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1161
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1162
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1163
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1180
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1181
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1182
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1200
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1201
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1202
AccessibleObject cell4 = dataGridView.
Rows
[0].Cells[3].AccessibilityObject;
1220
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1221
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1222
AccessibleObject cell4 = dataGridView.
Rows
[0].Cells[3].AccessibilityObject;
1240
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1241
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1242
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1261
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1262
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1263
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1264
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1286
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1287
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1288
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1308
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1309
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1310
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1330
AccessibleObject rowHeader = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1331
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1332
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1352
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1353
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1354
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1375
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1376
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1395
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1396
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1415
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1416
AccessibleObject cell3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1432
AccessibleObject cell1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1433
AccessibleObject cell2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1450
AccessibleObject cell = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1482
dataGridView.
Rows
.Add(new DataGridViewRow());
1483
Assert.Equal($"{string.Format(SR.DataGridView_AccRowName, expectedIndex)}, Not sorted.", dataGridView.
Rows
[0].Cells[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (26)
31
var cell = control.
Rows
[0].Cells[0];
75
var cell = control.
Rows
[0].Cells[0];
133
control.
Rows
.Add(new DataGridViewRow());
134
var cell = control.
Rows
[0].Cells[0];
157
control.
Rows
.Add(new DataGridViewRow());
158
var cell = control.
Rows
[0].Cells[0];
212
control.
Rows
.Add(new DataGridViewRow());
213
var cell = control.
Rows
[0].Cells[0];
254
dataGridView.
Rows
.Add(row);
257
DataGridViewCell cell = dataGridView.
Rows
[0].Cells[0];
273
dataGridView.
Rows
.Add(true);
274
Assert.Equal(ToggleState.ToggleState_On, dataGridView.
Rows
[1].Cells[0].AccessibilityObject.ToggleState);
276
dataGridView.
Rows
.Add(false);
277
Assert.Equal(ToggleState.ToggleState_Off, dataGridView.
Rows
[2].Cells[0].AccessibilityObject.ToggleState);
279
dataGridView.
Rows
.Add(CheckState.Indeterminate);
280
Assert.Equal(ToggleState.ToggleState_Indeterminate, dataGridView.
Rows
[3].Cells[0].AccessibilityObject.ToggleState);
282
dataGridView.
Rows
.Add(CheckState.Checked);
283
Assert.Equal(ToggleState.ToggleState_On, dataGridView.
Rows
[4].Cells[0].AccessibilityObject.ToggleState);
285
dataGridView.
Rows
.Add(CheckState.Unchecked);
286
Assert.Equal(ToggleState.ToggleState_Off, dataGridView.
Rows
[5].Cells[0].AccessibilityObject.ToggleState);
292
dataGridView.
Rows
.Add("on");
293
Assert.Equal(ToggleState.ToggleState_On, dataGridView.
Rows
[4].Cells[0].AccessibilityObject.ToggleState);
295
dataGridView.
Rows
.Add("off");
296
Assert.Equal(ToggleState.ToggleState_Off, dataGridView.
Rows
[5].Cells[0].AccessibilityObject.ToggleState);
298
dataGridView.
Rows
.Add("not set");
299
Assert.Equal(ToggleState.ToggleState_Indeterminate, dataGridView.
Rows
[3].Cells[0].AccessibilityObject.ToggleState);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxCellAccessibleObjectTests.cs (6)
28
dataGridView.
Rows
.Add();
29
dataGridView.CurrentCell = dataGridView.
Rows
[0].Cells[0];
36
bool actualPropertyValue = (bool)dataGridView.
Rows
[0].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsExpandCollapsePatternAvailablePropertyId);
62
dataGridView.
Rows
.Add();
63
dataGridView.CurrentCell = dataGridView.
Rows
[0].Cells[0];
70
int actualPropertyValue = (int)dataGridView.
Rows
[0].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (2)
118
control.
Rows
.Add();
121
control.CurrentCell = control.
Rows
[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (405)
80
dataGridView.
Rows
.Add("1");
81
dataGridView.
Rows
.Add("2");
82
dataGridView.
Rows
.Add("3");
84
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
85
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
86
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
100
dataGridView.
Rows
.Add("1");
101
dataGridView.
Rows
.Add("2");
102
dataGridView.
Rows
.Add("3");
103
dataGridView.
Rows
[0].Visible = false;
105
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
106
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
107
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
121
dataGridView.
Rows
.Add("1");
122
dataGridView.
Rows
.Add("2");
123
dataGridView.
Rows
.Add("3");
124
dataGridView.
Rows
[1].Visible = false;
126
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
127
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
128
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
142
dataGridView.
Rows
.Add("1");
143
dataGridView.
Rows
.Add("2");
144
dataGridView.
Rows
.Add("3");
145
dataGridView.
Rows
[2].Visible = false;
147
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
148
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
149
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
410
dataGridView.
Rows
.Add("1");
411
dataGridView.
Rows
.Add("2");
412
dataGridView.
Rows
.Add("3");
415
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
416
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
417
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
418
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
439
dataGridView.
Rows
.Add("1");
440
dataGridView.
Rows
.Add("2");
441
dataGridView.
Rows
.Add("3");
442
dataGridView.
Rows
[0].Visible = false;
445
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
446
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
447
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
466
dataGridView.
Rows
.Add("1");
467
dataGridView.
Rows
.Add("2");
468
dataGridView.
Rows
.Add("3");
469
dataGridView.
Rows
[1].Visible = false;
472
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
473
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
474
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
493
dataGridView.
Rows
.Add("1");
494
dataGridView.
Rows
.Add("2");
495
dataGridView.
Rows
.Add("3");
496
dataGridView.
Rows
[2].Visible = false;
499
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
500
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
501
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
520
dataGridView.
Rows
.Add("1");
521
dataGridView.
Rows
.Add("2");
522
dataGridView.
Rows
.Add("3");
524
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
525
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
526
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
543
dataGridView.
Rows
.Add("1");
544
dataGridView.
Rows
.Add("2");
545
dataGridView.
Rows
.Add("3");
546
dataGridView.
Rows
[0].Visible = false;
548
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
549
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
564
dataGridView.
Rows
.Add("1");
565
dataGridView.
Rows
.Add("2");
566
dataGridView.
Rows
.Add("3");
567
dataGridView.
Rows
[1].Visible = false;
569
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
570
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
585
dataGridView.
Rows
.Add("1");
586
dataGridView.
Rows
.Add("2");
587
dataGridView.
Rows
.Add("3");
588
dataGridView.
Rows
[2].Visible = false;
590
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
591
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
606
dataGridView.
Rows
.Add("1");
607
dataGridView.
Rows
.Add("2");
608
dataGridView.
Rows
.Add("3");
610
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
611
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
612
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
613
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
632
dataGridView.
Rows
.Add("1");
633
dataGridView.
Rows
.Add("2");
634
dataGridView.
Rows
.Add("3");
636
dataGridView.
Rows
[0].Visible = false;
638
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
639
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
640
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
657
dataGridView.
Rows
.Add("1");
658
dataGridView.
Rows
.Add("2");
659
dataGridView.
Rows
.Add("3");
661
dataGridView.
Rows
[1].Visible = false;
663
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
664
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
665
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
682
dataGridView.
Rows
.Add("1");
683
dataGridView.
Rows
.Add("2");
684
dataGridView.
Rows
.Add("3");
686
dataGridView.
Rows
[2].Visible = false;
688
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
689
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
690
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
707
dataGridView.
Rows
.Add("1");
708
dataGridView.
Rows
.Add("2");
709
dataGridView.
Rows
.Add("3");
712
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
713
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
714
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
733
dataGridView.
Rows
.Add("1");
734
dataGridView.
Rows
.Add("2");
735
dataGridView.
Rows
.Add("3");
736
dataGridView.
Rows
[0].Visible = false;
739
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
740
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
757
dataGridView.
Rows
.Add("1");
758
dataGridView.
Rows
.Add("2");
759
dataGridView.
Rows
.Add("3");
760
dataGridView.
Rows
[1].Visible = false;
763
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
764
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
781
dataGridView.
Rows
.Add("1");
782
dataGridView.
Rows
.Add("2");
783
dataGridView.
Rows
.Add("3");
784
dataGridView.
Rows
[2].Visible = false;
787
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
788
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
805
dataGridView.
Rows
.Add("1");
806
dataGridView.
Rows
.Add("2");
807
dataGridView.
Rows
.Add("3");
810
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
811
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
812
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
813
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
834
dataGridView.
Rows
.Add("1");
835
dataGridView.
Rows
.Add("2");
836
dataGridView.
Rows
.Add("3");
837
dataGridView.
Rows
[0].Visible = false;
840
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
841
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
842
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
861
dataGridView.
Rows
.Add("1");
862
dataGridView.
Rows
.Add("2");
863
dataGridView.
Rows
.Add("3");
864
dataGridView.
Rows
[1].Visible = false;
867
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
868
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
869
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
888
dataGridView.
Rows
.Add("1");
889
dataGridView.
Rows
.Add("2");
890
dataGridView.
Rows
.Add("3");
891
dataGridView.
Rows
[2].Visible = false;
894
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
895
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
896
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
915
dataGridView.
Rows
.Add("1");
916
dataGridView.
Rows
.Add("2");
917
dataGridView.
Rows
.Add("3");
919
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
920
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
921
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
938
dataGridView.
Rows
.Add("1");
939
dataGridView.
Rows
.Add("2");
940
dataGridView.
Rows
.Add("3");
941
dataGridView.
Rows
[0].Visible = false;
943
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
944
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
959
dataGridView.
Rows
.Add("1");
960
dataGridView.
Rows
.Add("2");
961
dataGridView.
Rows
.Add("3");
962
dataGridView.
Rows
[1].Visible = false;
964
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
965
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
980
dataGridView.
Rows
.Add("1");
981
dataGridView.
Rows
.Add("2");
982
dataGridView.
Rows
.Add("3");
983
dataGridView.
Rows
[2].Visible = false;
985
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
986
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1001
dataGridView.
Rows
.Add("1");
1002
dataGridView.
Rows
.Add("2");
1003
dataGridView.
Rows
.Add("3");
1005
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1006
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1007
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1008
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
1027
dataGridView.
Rows
.Add("1");
1028
dataGridView.
Rows
.Add("2");
1029
dataGridView.
Rows
.Add("3");
1031
dataGridView.
Rows
[0].Visible = false;
1033
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1034
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1035
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
1052
dataGridView.
Rows
.Add("1");
1053
dataGridView.
Rows
.Add("2");
1054
dataGridView.
Rows
.Add("3");
1056
dataGridView.
Rows
[1].Visible = false;
1058
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1059
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1060
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
1077
dataGridView.
Rows
.Add("1");
1078
dataGridView.
Rows
.Add("2");
1079
dataGridView.
Rows
.Add("3");
1081
dataGridView.
Rows
[2].Visible = false;
1083
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1084
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1085
AccessibleObject accessibleObject4 = dataGridView.
Rows
[3].AccessibilityObject;
1102
dataGridView.
Rows
.Add("1");
1103
dataGridView.
Rows
.Add("2");
1104
dataGridView.
Rows
.Add("3");
1107
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1108
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1109
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1128
dataGridView.
Rows
.Add("1");
1129
dataGridView.
Rows
.Add("2");
1130
dataGridView.
Rows
.Add("3");
1131
dataGridView.
Rows
[0].Visible = false;
1134
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1135
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1152
dataGridView.
Rows
.Add("1");
1153
dataGridView.
Rows
.Add("2");
1154
dataGridView.
Rows
.Add("3");
1155
dataGridView.
Rows
[1].Visible = false;
1158
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1159
AccessibleObject accessibleObject3 = dataGridView.
Rows
[2].AccessibilityObject;
1176
dataGridView.
Rows
.Add("1");
1177
dataGridView.
Rows
.Add("2");
1178
dataGridView.
Rows
.Add("3");
1179
dataGridView.
Rows
[2].Visible = false;
1182
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].AccessibilityObject;
1183
AccessibleObject accessibleObject2 = dataGridView.
Rows
[1].AccessibilityObject;
1202
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1203
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1217
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1233
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1234
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1235
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1251
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1252
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1253
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1269
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1270
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1271
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1289
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1305
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1306
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1307
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1323
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1324
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1325
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1341
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1342
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1343
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1361
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1362
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1380
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1381
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1382
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1401
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1402
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1403
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1422
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1423
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1424
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1443
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1444
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1445
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1463
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1464
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1465
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1484
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1485
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1486
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1505
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1506
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1507
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1526
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1527
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1528
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1542
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1558
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1559
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1560
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1576
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1577
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1578
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1594
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1595
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1596
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1614
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1630
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1631
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1632
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1648
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1649
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1650
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1666
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1667
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1668
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1686
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1687
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1705
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1706
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1707
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1726
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1727
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1728
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1747
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1748
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1749
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1768
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1769
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1770
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1788
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1789
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1790
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1809
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1810
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1811
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1830
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1831
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1832
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1851
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1852
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1853
AccessibleObject accessibleObject = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1871
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1887
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1888
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1889
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1890
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1908
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1909
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1910
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1927
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1928
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1929
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1946
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1947
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1948
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1964
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1965
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
1966
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
1967
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
1968
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
1989
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
1990
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2007
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2008
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2009
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2010
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2028
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2029
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2030
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2031
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2049
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2050
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2051
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2052
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2072
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2073
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2074
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2075
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2096
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2097
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2098
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2118
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2119
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2120
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2140
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2141
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2142
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2161
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2162
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2163
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2164
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2165
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2187
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2188
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2189
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2190
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2211
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2212
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2213
AccessibleObject accessibleObject1 = dataGridView.
Rows
[0].Cells[2].AccessibilityObject;
2214
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2235
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2236
AccessibleObject topLeftAccessibilityObject = dataGridView.
Rows
[0].HeaderCell.AccessibilityObject;
2237
AccessibleObject accessibleObject2 = dataGridView.
Rows
[0].Cells[1].AccessibilityObject;
2238
AccessibleObject accessibleObject3 = dataGridView.
Rows
[0].Cells[0].AccessibilityObject;
2255
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2270
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2286
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2303
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2317
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2332
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2348
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2365
AccessibleObject rowAccessibleObject = dataGridView.
Rows
[0].AccessibilityObject;
2381
dataGridView.
Rows
.Add(new DataGridViewRow());
2382
dataGridView.
Rows
[0].Cells[0].Value = "test1";
2384
Assert.Equal("test1", ((BSTR)dataGridView.
Rows
[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree());
2397
dataGridView.
Rows
.Add(new DataGridViewRow());
2399
Assert.Equal(string.Format(SR.DataGridView_AccRowName, expectedIndex), dataGridView.
Rows
[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (13)
29
DataGridViewRowHeaderCell cell = control.
Rows
[0].HeaderCell;
56
DataGridViewRow row = control.
Rows
[0];
77
var accessibleObject = (DataGridViewRowHeaderCellAccessibleObject)control.
Rows
[0].HeaderCell.AccessibilityObject;
92
DataGridViewRowHeaderCell cell = control.
Rows
[0].HeaderCell;
112
DataGridViewRowHeaderCell cell = control.
Rows
[0].HeaderCell;
128
var accessibleObject = (DataGridViewRowHeaderCellAccessibleObject)control.
Rows
[0].HeaderCell.AccessibilityObject;
140
DataGridViewRow row = control.
Rows
[0];
165
DataGridViewRow row = control.
Rows
[0];
182
DataGridViewRow row = control.
Rows
[0];
200
DataGridViewRow row = control.
Rows
[0];
219
DataGridViewRow row = control.
Rows
[0];
235
DataGridViewRow row = control.
Rows
[0];
250
DataGridViewRow row = control.
Rows
[0];
System\Windows\Forms\AccessibleObjects\DataGridViewRowsAccessibleObjectTests.cs (12)
18
dataGridView.
Rows
[0].Height = 20;
19
dataGridView.
Rows
[1].Height = 20;
20
dataGridView.
Rows
[2].Height = 20;
21
dataGridView.
Rows
[3].Height = 20;
22
dataGridView.
Rows
[4].Height = 20;
29
accRowHeightSum += dataGridView.
Rows
[i].AccessibilityObject.BoundingRectangle.Height;
47
dataGridView.
Rows
[0].Height = 20;
48
dataGridView.
Rows
[1].Height = 20;
49
dataGridView.
Rows
[2].Height = 20;
50
dataGridView.
Rows
[3].Height = 20;
51
dataGridView.
Rows
[4].Height = 20;
58
accRowHeightSum += dataGridView.
Rows
[i].AccessibilityObject.BoundingRectangle.Height;
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (11)
79
control.
Rows
.Add("Row1");
80
DataGridViewCell currentCell = control.
Rows
[0].Cells[0];
98
DataGridViewCell currentCell = control.
Rows
[0].Cells[0];
119
control.
Rows
.Add("Row1");
123
control.
Rows
[0].Cells[i].Selected = true;
140
control.
Rows
.Add("Row1");
142
DataGridViewCell selecetedCell1 = control.
Rows
[0].Cells[0];
177
control.
Rows
.Add("Row1");
179
DataGridViewCell selecetedCell1 = control.
Rows
[0].Cells[0];
198
control.
Rows
.Add("Row1");
199
DataGridViewCell selecetedCell1 = control.
Rows
[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (16)
57
control.
Rows
.Add("Row1");
58
DataGridViewRow row = control.
Rows
[0];
82
control.
Rows
.Add("Row1");
83
DataGridViewCell currentCell = control.
Rows
[0].Cells[0];
89
var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.
Rows
[0]], null);
101
DataGridViewCell currentCell = control.
Rows
[0].Cells[0];
107
var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.
Rows
[0]], null);
122
control.
Rows
.Add("Row1");
123
DataGridViewRow row = control.
Rows
[0];
145
control.
Rows
.Add("Row1");
146
DataGridViewRow row = control.
Rows
[0];
170
var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.
Rows
[0]], null);
184
control.
Rows
.Add("Row1");
185
DataGridViewRow row = control.
Rows
[0];
206
control.
Rows
.Add("Row1");
207
DataGridViewRow row = control.
Rows
[0];
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (2)
142
control.
Rows
.Add();
145
control.CurrentCell = control.
Rows
[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (1)
19
AccessibleObject expectedNextSibling = dataGridView.
Rows
[0].AccessibilityObject;
System\Windows\Forms\DataGridViewCellErrorTextNeededEventArgsTests.cs (1)
17
DataGridViewCell cell = dataGridView.
Rows
[0].Cells[0];
System\Windows\Forms\DataGridViewCellTests.ClipboardTests.cs (4)
69
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
84
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
113
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
131
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
System\Windows\Forms\DataGridViewCellTests.cs (169)
88
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
102
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
148
DataGridViewCell cell = control.
Rows
[0].Cells[0];
166
DataGridViewCell cell = control.
Rows
[0].Cells[0];
203
DataGridViewCell cell = control.
Rows
[0].Cells[0];
284
DataGridViewCell cell = control.
Rows
[0].Cells[0];
306
DataGridViewCell cell = control.
Rows
[0].Cells[0];
439
control.
Rows
.Add();
440
DataGridViewRow row = control.
Rows
[0];
481
control.
Rows
.Add();
482
DataGridViewRow row = control.
Rows
.SharedRow(0);
506
control.
Rows
.Add();
507
DataGridViewRow row = control.
Rows
[0];
549
control.
Rows
.Add();
552
DataGridViewRow row = control.
Rows
.SharedRow(0);
643
DataGridViewCell cell = control.
Rows
[0].Cells[0];
658
DataGridViewCell cell = control.
Rows
[0].Cells[0];
674
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
688
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
727
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
759
DataGridViewCell cell = control.
Rows
[0].Cells[0];
773
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
786
DataGridViewCell cell = control.
Rows
[0].Cells[0];
818
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
847
DataGridViewCell cell = control.
Rows
[0].Cells[0];
883
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1012
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1039
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1067
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1094
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1124
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1167
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1207
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1291
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1306
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1322
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1380
DataGridViewRow row = control.
Rows
[0];
1399
DataGridViewRow row = control.
Rows
.SharedRow(0);
1470
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1484
DataGridViewRow row = control.
Rows
[0];
1502
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1559
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1573
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1625
DataGridViewRow row = control.
Rows
[0];
1650
DataGridViewRow row = control.
Rows
.SharedRow(0);
1786
DataGridViewRow row = control.
Rows
[0];
1831
DataGridViewRow row = control.
Rows
[0];
1882
DataGridViewRow row = control.
Rows
[0];
1921
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1966
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2019
DataGridViewRow row = control.
Rows
[0];
2038
DataGridViewRow row = control.
Rows
.SharedRow(0);
2082
DataGridViewRow row = control.
Rows
[0];
2101
DataGridViewRow row = control.
Rows
.SharedRow(0);
2156
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2187
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2204
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2382
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2409
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2432
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2556
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2570
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2686
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2709
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2733
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2756
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2803
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2939
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2964
DataGridViewCell cell = control.
Rows
[0].Cells[0];
3036
control.
Rows
.Add(new DataGridViewRow());
3037
DataGridViewRow row = control.
Rows
[0];
3057
DataGridViewRow row = control.
Rows
.SharedRow(0);
3255
DataGridViewRow row = control.
Rows
[0];
3276
DataGridViewRow row = control.
Rows
[0];
3295
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
3480
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3617
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3631
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
3648
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3744
DataGridViewCell cell = control.
Rows
[0].Cells[0];
3761
DataGridViewCell cell = control.
Rows
[0].Cells[0];
3779
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
3800
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3914
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
3943
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
3969
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
4008
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
4051
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
4094
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
4130
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
4259
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4282
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4302
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
4320
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4357
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4393
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4410
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
4459
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4500
control.
Rows
.Add();
4501
DataGridViewRow row = control.
Rows
[0];
4530
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4574
control.
Rows
.Add();
4575
DataGridViewRow row = control.
Rows
[0];
4608
DataGridViewRow row = control.
Rows
[0];
4626
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
4674
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4691
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
4740
DataGridViewCell cell = control.
Rows
[0].Cells[0];
4754
dataGridView.
Rows
.Add();
4755
var cell = dataGridView.
Rows
[0].Cells[0];
4794
control.
Rows
.Add();
4795
control.
Rows
.Add();
4796
control.
Rows
.Add();
4797
control.
Rows
.Add();
4799
control.
Rows
[0].Cells[1].Value = "Text";
4800
control.
Rows
[1].Cells[2].Value = "Text";
4801
control.
Rows
[1].Cells[3].Value = "Text";
4802
control.
Rows
[2].Cells[0].Value = "Text";
4803
control.
Rows
[2].Cells[1].Value = "Text";
4804
control.
Rows
[2].Cells[3].Value = "Text";
4805
control.
Rows
[3].Cells[1].Value = "Text";
4806
control.
Rows
[3].Cells[2].Value = "Text";
4808
IList<Rectangle> neighbors00 = ((IKeyboardToolTip)control.
Rows
[0].Cells[0]).GetNeighboringToolsRectangles();
4809
Assert.True(neighbors00.Contains(control.
Rows
[0].Cells[1].AccessibilityObject.Bounds));
4810
Assert.False(neighbors00.Contains(control.
Rows
[1].Cells[1].AccessibilityObject.Bounds));
4811
Assert.False(neighbors00.Contains(control.
Rows
[1].Cells[0].AccessibilityObject.Bounds));
4813
IList<Rectangle> neighbors21 = ((IKeyboardToolTip)control.
Rows
[2].Cells[1]).GetNeighboringToolsRectangles();
4814
Assert.True(neighbors21.Contains(control.
Rows
[1].Cells[2].AccessibilityObject.Bounds));
4815
Assert.True(neighbors21.Contains(control.
Rows
[2].Cells[0].AccessibilityObject.Bounds));
4816
Assert.True(neighbors21.Contains(control.
Rows
[2].Cells[1].AccessibilityObject.Bounds));
4817
Assert.True(neighbors21.Contains(control.
Rows
[3].Cells[1].AccessibilityObject.Bounds));
4818
Assert.False(neighbors21.Contains(control.
Rows
[1].Cells[1].AccessibilityObject.Bounds));
4820
IList<Rectangle> neighbors33 = ((IKeyboardToolTip)control.
Rows
[3].Cells[3]).GetNeighboringToolsRectangles();
4821
Assert.True(neighbors33.Contains(control.
Rows
[2].Cells[3].AccessibilityObject.Bounds));
4822
Assert.True(neighbors33.Contains(control.
Rows
[3].Cells[2].AccessibilityObject.Bounds));
4823
Assert.False(neighbors33.Contains(control.
Rows
[2].Cells[2].AccessibilityObject.Bounds));
4871
DataGridViewRow row = control.
Rows
[0];
4892
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
4918
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
4932
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5003
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5019
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5034
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5048
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5069
control.
Rows
.Add();
5070
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5108
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5149
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5185
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5202
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5565
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
5602
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5639
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5666
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5693
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5820
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5847
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5874
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5911
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5948
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
5975
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
6002
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
6307
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
6329
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
6363
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
[0].Cells[0];
6380
SubDataGridViewCell cell = (SubDataGridViewCell)control.
Rows
.SharedRow(0).Cells[0];
6419
DataGridViewCell cell = control.
Rows
[0].Cells[0];
6430
DataGridViewImageCell cell = dataGridView.
Rows
[0].Cells[0].Should().BeOfType<DataGridViewImageCell>().Which;
6447
SubDataGridViewCheckBoxCell cell = (SubDataGridViewCheckBoxCell)dataGridView.
Rows
[0].Cells[0];
System\Windows\Forms\DataGridViewElementTests.cs (11)
61
control.
Rows
[0].Cells[0] = element;
91
control.
Rows
[0].Cells[0] = element;
113
control.
Rows
[0].Cells[0] = element;
143
control.
Rows
[0].Cells[0] = element;
165
control.
Rows
[0].Cells[0] = element;
195
control.
Rows
[0].Cells[0] = element;
217
control.
Rows
[0].Cells[0] = element;
247
control.
Rows
[0].Cells[0] = element;
289
control.
Rows
[0].Cells[0] = element;
319
control.
Rows
[0].Cells[0] = element;
341
control.
Rows
[0].Cells[0] = element;
System\Windows\Forms\DataGridViewHeaderCellTests.cs (108)
127
control.
Rows
.Add();
128
DataGridViewRow row = control.
Rows
[0];
175
control.
Rows
.Add();
176
DataGridViewRow row = control.
Rows
[0];
248
control.
Rows
.Add();
249
DataGridViewRow row = control.
Rows
.SharedRow(0);
281
control.
Rows
.Add();
282
DataGridViewRow row = control.
Rows
[0];
351
control.
Rows
.Add();
352
DataGridViewRow row = control.
Rows
[0];
416
control.
Rows
.Add();
417
DataGridViewRow row = control.
Rows
.SharedRow(0);
500
DataGridViewRow row = control.
Rows
[0];
537
DataGridViewRow row = control.
Rows
.SharedRow(0);
625
DataGridViewRow row = control.
Rows
[0];
647
DataGridViewRow row = control.
Rows
[0];
670
DataGridViewRow row = control.
Rows
[0];
710
DataGridViewRow row = control.
Rows
.SharedRow(0);
770
DataGridViewCell cell = control.
Rows
[0].Cells[0];
787
DataGridViewRow row = control.
Rows
[0];
840
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
936
DataGridViewRow row = control.
Rows
[0];
960
DataGridViewRow row = control.
Rows
[0];
1002
DataGridViewRow row = control.
Rows
[0];
1059
DataGridViewRow row = control.
Rows
.SharedRow(0);
1121
DataGridViewRow row = control.
Rows
[0];
1143
DataGridViewRow row = control.
Rows
[0];
1166
DataGridViewRow row = control.
Rows
[0];
1198
DataGridViewRow row = control.
Rows
.SharedRow(0);
1260
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1278
DataGridViewRow row = control.
Rows
[0];
1332
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
1382
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1399
DataGridViewRow row = control.
Rows
[0];
1616
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1643
DataGridViewCell cell = control.
Rows
[0].Cells[0];
1671
DataGridViewRow row = control.
Rows
[0];
1700
DataGridViewRow row = control.
Rows
[0];
1910
control.
Rows
.Add(new DataGridViewRow());
1911
DataGridViewRow row = control.
Rows
[0];
1935
control.
Rows
.Add(new DataGridViewRow());
1936
DataGridViewRow row = control.
Rows
[0];
1961
control.
Rows
.Add(new DataGridViewRow());
1962
DataGridViewRow row = control.
Rows
[0];
2010
DataGridViewRow row = control.
Rows
.SharedRow(0);
2283
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2306
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2364
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
2382
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2419
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2514
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2555
control.
Rows
.Add();
2556
DataGridViewRow row = control.
Rows
[0];
2579
DataGridViewRow row = control.
Rows
[0];
2597
control.
Rows
.Add();
2598
DataGridViewRow row = control.
Rows
[0];
2665
control.
Rows
.Add();
2666
DataGridViewRow row = control.
Rows
[0];
2730
DataGridViewCell cell = control.
Rows
[0].Cells[0];
2774
control.
Rows
.Add();
2775
DataGridViewRow row = control.
Rows
[0];
2808
DataGridViewRow row = control.
Rows
[0];
2837
control.
Rows
.Add();
2838
DataGridViewRow row = control.
Rows
[0];
2925
control.
Rows
.Add();
2926
DataGridViewRow row = control.
Rows
[0];
3005
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
3055
DataGridViewCell cell = control.
Rows
[0].Cells[0];
3073
DataGridViewRow row = control.
Rows
[0];
3121
DataGridViewCell cell = control.
Rows
.SharedRow(0).Cells[0];
3176
DataGridViewRow row = control.
Rows
[0];
3199
DataGridViewRow row = control.
Rows
[0];
3223
DataGridViewRow row = control.
Rows
[0];
3262
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3326
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3343
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3450
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3466
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3482
DataGridViewRow row = control.
Rows
[0];
3499
DataGridViewRow row = control.
Rows
[0];
3571
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3585
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3606
control.
Rows
.Add();
3607
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3645
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3686
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3756
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3805
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
.SharedRow(0).Cells[0];
3889
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3957
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
3996
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4038
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4079
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4186
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4212
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4229
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4269
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4297
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4337
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4365
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4397
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4427
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4484
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4510
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4568
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4595
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4612
SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.
Rows
[0].Cells[0];
4661
DataGridViewCell cell = control.
Rows
[0].Cells[0];
System\Windows\Forms\DataGridViewRowErrorTextNeededEventArgsTests.cs (1)
17
DataGridViewRow row = dataGridView.
Rows
[0];
System\Windows\Forms\DataGridViewRowHeightInfoNeededEventArgsTests.cs (4)
20
DataGridViewRow row = dataGridView.
Rows
[0];
44
DataGridViewRow row = dataGridView.
Rows
[0];
72
DataGridViewRow row = dataGridView.
Rows
[0];
100
DataGridViewRow row = dataGridView.
Rows
[0];
System\Windows\Forms\DataGridViewRowTests.cs (199)
58
DataGridViewRow row = control.
Rows
[0];
74
DataGridViewRow row = control.
Rows
[0];
111
DataGridViewRow row = control.
Rows
[0];
142
DataGridViewRow row = control.
Rows
.SharedRow(0);
194
DataGridViewRow row = control.
Rows
[0];
215
DataGridViewRow row = control.
Rows
.SharedRow(0);
267
DataGridViewRow row = control.
Rows
[0];
314
DataGridViewRow row = control.
Rows
[0];
329
DataGridViewRow row = control.
Rows
[0];
341
DataGridViewRow row = control.
Rows
.SharedRow(0);
356
DataGridViewRow row = control.
Rows
.SharedRow(0);
368
DataGridViewRow row = control.
Rows
[0];
381
DataGridViewRow row = control.
Rows
.SharedRow(0);
445
DataGridViewRow row = control.
Rows
[0];
472
DataGridViewRow row = control.
Rows
[0];
495
DataGridViewRow row = control.
Rows
[0];
567
DataGridViewRow row = control.
Rows
.SharedRow(0);
579
DataGridViewRow row = control.
Rows
[0];
591
DataGridViewRow row = control.
Rows
.SharedRow(0);
644
DataGridViewRow row = control.
Rows
[0];
665
DataGridViewRow row = control.
Rows
[0];
685
DataGridViewRow row = control.
Rows
.SharedRow(0);
706
DataGridViewRow row = control.
Rows
.SharedRow(0);
744
DataGridViewRow row = control.
Rows
[0];
756
DataGridViewRow row = control.
Rows
.SharedRow(0);
768
DataGridViewRow row = control.
Rows
[0];
780
DataGridViewRow row = control.
Rows
.SharedRow(0);
815
DataGridViewRow row = control.
Rows
[0];
835
DataGridViewRow row = control.
Rows
[0];
885
DataGridViewRow row = control.
Rows
.SharedRow(0);
897
DataGridViewRow row = control.
Rows
[0];
910
DataGridViewRow row = control.
Rows
[0];
945
DataGridViewRow row = control.
Rows
[0];
975
DataGridViewRow row = control.
Rows
.SharedRow(0);
1020
DataGridViewRow row = control.
Rows
[0];
1041
DataGridViewRow row = control.
Rows
[0];
1062
DataGridViewRow row = control.
Rows
[0];
1108
DataGridViewRow row = control.
Rows
.SharedRow(0);
1136
control.
Rows
.Add();
1137
Assert.False(control.
Rows
[0].Frozen);
1150
control.
Rows
.Add();
1151
Assert.Throws<InvalidOperationException>(() => control.
Rows
.SharedRow(0).Frozen);
1194
control.
Rows
.Add();
1195
DataGridViewRow row = control.
Rows
[0];
1224
control.
Rows
.Add();
1225
DataGridViewRow row = control.
Rows
[0];
1269
control.
Rows
.Add();
1270
control.
Rows
.Add();
1271
control.
Rows
.Add();
1272
control.
Rows
.Add();
1273
DataGridViewRow row1 = control.
Rows
[0];
1274
DataGridViewRow row2 = control.
Rows
[1];
1276
DataGridViewRow row3 = control.
Rows
[2];
1277
DataGridViewRow row4 = control.
Rows
[3];
1323
DataGridViewRow row = control.
Rows
[0];
1367
control.
Rows
.Add();
1368
Assert.Throws<InvalidOperationException>(() => control.
Rows
.SharedRow(0).Frozen = value);
1392
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
1410
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
.SharedRow(0);
1439
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
1457
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
.SharedRow(0);
1572
DataGridViewRow row = control.
Rows
[0];
1609
DataGridViewRow row = control.
Rows
[0];
1649
DataGridViewRow row = control.
Rows
.SharedRow(0);
1686
DataGridViewRow row = control.
Rows
.SharedRow(0);
1725
DataGridViewRow row = control.
Rows
[0];
1791
DataGridViewRow row = control.
Rows
[0];
1808
DataGridViewRow row = control.
Rows
.SharedRow(0);
1839
DataGridViewRow row = control.
Rows
[0];
1874
DataGridViewRow row = control.
Rows
[0];
1957
DataGridViewRow row = control.
Rows
[0];
1977
DataGridViewRow row = control.
Rows
[0];
2050
DataGridViewRow row = control.
Rows
.SharedRow(0);
2169
control.
Rows
.Add(new SubDataGridViewRow());
2170
control.
Rows
.Add(new SubDataGridViewRow());
2172
DataGridViewRow row = control.
Rows
[index];
2196
DataGridViewRow row = control.
Rows
.SharedRow(0);
2208
DataGridViewRow row = control.
Rows
[0];
2220
DataGridViewRow row = control.
Rows
[0];
2232
DataGridViewRow row = control.
Rows
.SharedRow(0);
2244
DataGridViewRow row = control.
Rows
.SharedRow(0);
2260
DataGridViewRow row = control.
Rows
[0];
2277
DataGridViewRow row = control.
Rows
.SharedRow(0);
2308
DataGridViewRow row = control.
Rows
[0];
2343
DataGridViewRow row = control.
Rows
[0];
2422
DataGridViewRow row = control.
Rows
[0];
2444
DataGridViewRow row = control.
Rows
[0];
2498
DataGridViewRow row = control.
Rows
.SharedRow(0);
2526
DataGridViewRow row = control.
Rows
[0];
2540
DataGridViewRow row = control.
Rows
.SharedRow(0);
2579
DataGridViewRow row = control.
Rows
[0];
2605
DataGridViewRow row = control.
Rows
[0];
2651
DataGridViewRow row = control.
Rows
[0];
2681
DataGridViewRow row = control.
Rows
[0];
2722
DataGridViewRow row = control.
Rows
.SharedRow(0);
2737
DataGridViewRow row = control.
Rows
[0];
2751
DataGridViewRow row = control.
Rows
.SharedRow(0);
2763
DataGridViewRow row = control.
Rows
.SharedRow(0);
2819
DataGridViewRow row = control.
Rows
[0];
2839
DataGridViewRow row = control.
Rows
[0];
2882
DataGridViewRow row = control.
Rows
[0];
2911
DataGridViewRow row = control.
Rows
[0];
2923
DataGridViewRow row = control.
Rows
.SharedRow(0);
2953
DataGridViewRow row = control.
Rows
[0];
2979
control.
Rows
.Add(new DataGridViewRow());
2980
control.
Rows
.Add(new DataGridViewRow());
2981
DataGridViewRow row1 = control.
Rows
[0];
2982
DataGridViewRow row2 = control.
Rows
[1];
3013
control.
Rows
.Add(new DataGridViewRow());
3014
control.
Rows
.Add(new DataGridViewRow());
3015
DataGridViewRow row1 = control.
Rows
[0];
3016
DataGridViewRow row2 = control.
Rows
[1];
3048
DataGridViewRow row = control.
Rows
.SharedRow(0);
3060
DataGridViewRow row = control.
Rows
[0];
3072
DataGridViewRow row = control.
Rows
.SharedRow(0);
3084
DataGridViewRow row = control.
Rows
[0];
3096
DataGridViewRow row = control.
Rows
.SharedRow(0);
3141
DataGridViewRow row = control.
Rows
[0];
3162
DataGridViewRow row = control.
Rows
[0];
3184
DataGridViewRow row = control.
Rows
.SharedRow(0);
3205
DataGridViewRow row = control.
Rows
.SharedRow(0);
3226
DataGridViewRow row = control.
Rows
[0];
3238
DataGridViewRow row = control.
Rows
.SharedRow(0);
3283
DataGridViewRow row = control.
Rows
[0];
3311
DataGridViewRow row = control.
Rows
[0];
3352
DataGridViewRow row = control.
Rows
[0];
3369
DataGridViewRow row = control.
Rows
.SharedRow(0);
3724
DataGridViewRow row = control.
Rows
[0];
4017
DataGridViewRow source = control.
Rows
[0];
4124
DataGridViewRow row = control.
Rows
[0];
4205
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4228
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4244
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4273
DataGridViewRow row1 = control.
Rows
[0];
4276
DataGridViewRow row2 = control.
Rows
[1];
4298
DataGridViewRow row = control.
Rows
[0];
4335
DataGridViewRow row = control.
Rows
[0];
4368
DataGridViewRow row = control.
Rows
[0];
4380
DataGridViewRow row = control.
Rows
[0];
4406
DataGridViewRow row1 = control.
Rows
[0];
4408
DataGridViewRow row2 = control.
Rows
[1];
4426
DataGridViewRow row = control.
Rows
[0];
4460
DataGridViewRow row = control.
Rows
[0];
4492
DataGridViewRow row = control.
Rows
[0];
4504
DataGridViewRow row = control.
Rows
[0];
4523
DataGridViewRow row = control.
Rows
[0];
4537
DataGridViewRow row = control.
Rows
.SharedRow(0);
4562
DataGridViewRow row = control.
Rows
[0];
4590
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4614
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4640
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4664
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4688
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4712
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4736
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4761
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4786
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
4805
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4852
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4882
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4922
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4954
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4968
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
4982
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5008
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5036
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5060
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5086
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5110
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5134
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5158
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5182
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5207
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5232
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5249
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5263
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5277
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5291
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5318
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5336
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5356
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5380
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5406
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5430
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5454
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5478
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5502
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5527
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5552
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5570
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5585
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5600
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5615
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[1];
5640
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5656
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5674
SubDataGridViewRow row = (SubDataGridViewRow)control.
Rows
[0];
5702
DataGridViewRow row = control.
Rows
[0];
5737
DataGridViewRow row = control.
Rows
[0];
5749
DataGridViewRow row = control.
Rows
.SharedRow(0);
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (55)
30
control.
Rows
[0].Cells[0].Selected = true;
31
control.
Rows
[1].Cells[0].Selected = false;
32
control.
Rows
[2].Cells[0].Selected = true;
50
control.
Rows
[0].Cells[0].Selected = true;
51
control.
Rows
[1].Cells[0].Selected = false;
52
control.
Rows
[2].Cells[0].Selected = true;
55
Assert.Equal(control.
Rows
[2].Cells[0], collection[0]);
56
Assert.Equal(control.
Rows
[0].Cells[0], collection[1]);
81
control.
Rows
[0].Cells[0].Selected = true;
82
control.
Rows
[1].Cells[0].Selected = false;
83
control.
Rows
[2].Cells[0].Selected = true;
106
control.
Rows
[0].Cells[0].Selected = true;
107
control.
Rows
[1].Cells[0].Selected = false;
108
control.
Rows
[2].Cells[0].Selected = true;
111
Assert.True(collection.Contains(control.
Rows
[0].Cells[0]));
112
Assert.False(collection.Contains(control.
Rows
[1].Cells[0]));
113
Assert.True(collection.Contains(control.
Rows
[2].Cells[0]));
152
control.
Rows
[0].Cells[0].Selected = true;
153
control.
Rows
[1].Cells[0].Selected = false;
154
control.
Rows
[2].Cells[0].Selected = true;
159
Assert.Equal([1, control.
Rows
[2].Cells[0], control.
Rows
[0].Cells[0]], array);
202
control.
Rows
[0].Cells[0].Selected = true;
203
control.
Rows
[1].Cells[0].Selected = false;
204
control.
Rows
[2].Cells[0].Selected = true;
224
control.
Rows
[0].Cells[0].Selected = true;
225
control.
Rows
[1].Cells[0].Selected = false;
226
control.
Rows
[2].Cells[0].Selected = true;
230
Assert.Equal(control.
Rows
[2].Cells[0], iList[0]);
231
Assert.Equal(control.
Rows
[0].Cells[0], iList[1]);
257
control.
Rows
[0].Cells[0].Selected = true;
258
control.
Rows
[1].Cells[0].Selected = false;
259
control.
Rows
[2].Cells[0].Selected = true;
329
control.
Rows
[0].Cells[0].Selected = true;
330
control.
Rows
[1].Cells[0].Selected = false;
331
control.
Rows
[2].Cells[0].Selected = true;
337
Assert.Equal([1, control.
Rows
[2].Cells[0], control.
Rows
[0].Cells[0]], array);
366
control.
Rows
[0].Cells[0].Selected = true;
367
control.
Rows
[1].Cells[0].Selected = false;
368
control.
Rows
[2].Cells[0].Selected = true;
372
Assert.True(iList.Contains(control.
Rows
[0].Cells[0]));
373
Assert.False(iList.Contains(control.
Rows
[1].Cells[0]));
374
Assert.True(iList.Contains(control.
Rows
[2].Cells[0]));
407
control.
Rows
[0].Cells[0].Selected = true;
408
control.
Rows
[1].Cells[0].Selected = false;
409
control.
Rows
[2].Cells[0].Selected = true;
419
Assert.Same(control.
Rows
[2].Cells[0], enumerator.Current);
422
Assert.Same(control.
Rows
[0].Cells[0], enumerator.Current);
458
control.
Rows
[0].Cells[0].Selected = true;
459
control.
Rows
[1].Cells[0].Selected = false;
460
control.
Rows
[2].Cells[0].Selected = true;
464
Assert.Equal(1, iList.IndexOf(control.
Rows
[0].Cells[0]));
465
Assert.Equal(-1, iList.IndexOf(control.
Rows
[1].Cells[0]));
466
Assert.Equal(0, iList.IndexOf(control.
Rows
[2].Cells[0]));
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (55)
29
control.
Rows
[0].Selected = true;
30
control.
Rows
[1].Selected = false;
31
control.
Rows
[2].Selected = true;
48
control.
Rows
[0].Selected = true;
49
control.
Rows
[1].Selected = false;
50
control.
Rows
[2].Selected = true;
53
Assert.Equal(control.
Rows
[2], collection[0]);
54
Assert.Equal(control.
Rows
[0], collection[1]);
78
control.
Rows
[0].Selected = true;
79
control.
Rows
[1].Selected = false;
80
control.
Rows
[2].Selected = true;
102
control.
Rows
[0].Selected = true;
103
control.
Rows
[1].Selected = false;
104
control.
Rows
[2].Selected = true;
107
Assert.True(collection.Contains(control.
Rows
[0]));
108
Assert.False(collection.Contains(control.
Rows
[1]));
109
Assert.True(collection.Contains(control.
Rows
[2]));
147
control.
Rows
[0].Selected = true;
148
control.
Rows
[1].Selected = false;
149
control.
Rows
[2].Selected = true;
154
Assert.Equal([1, control.
Rows
[2], control.
Rows
[0]], array);
196
control.
Rows
[0].Selected = true;
197
control.
Rows
[1].Selected = false;
198
control.
Rows
[2].Selected = true;
217
control.
Rows
[0].Selected = true;
218
control.
Rows
[1].Selected = false;
219
control.
Rows
[2].Selected = true;
223
Assert.Equal(control.
Rows
[2], iList[0]);
224
Assert.Equal(control.
Rows
[0], iList[1]);
249
control.
Rows
[0].Selected = true;
250
control.
Rows
[1].Selected = false;
251
control.
Rows
[2].Selected = true;
320
control.
Rows
[0].Selected = true;
321
control.
Rows
[1].Selected = false;
322
control.
Rows
[2].Selected = true;
328
Assert.Equal([1, control.
Rows
[2], control.
Rows
[0]], array);
356
control.
Rows
[0].Selected = true;
357
control.
Rows
[1].Selected = false;
358
control.
Rows
[2].Selected = true;
362
Assert.True(iList.Contains(control.
Rows
[0]));
363
Assert.False(iList.Contains(control.
Rows
[1]));
364
Assert.True(iList.Contains(control.
Rows
[2]));
396
control.
Rows
[0].Selected = true;
397
control.
Rows
[1].Selected = false;
398
control.
Rows
[2].Selected = true;
408
Assert.Same(control.
Rows
[2], enumerator.Current);
411
Assert.Same(control.
Rows
[0], enumerator.Current);
446
control.
Rows
[0].Selected = true;
447
control.
Rows
[1].Selected = false;
448
control.
Rows
[2].Selected = true;
452
Assert.Equal(1, iList.IndexOf(control.
Rows
[0]));
453
Assert.Equal(-1, iList.IndexOf(control.
Rows
[1]));
454
Assert.Equal(0, iList.IndexOf(control.
Rows
[2]));
System\Windows\Forms\DataGridViewTests.cs (40)
2352
dataGridView.
Rows
.Add("DefaultCellStyle", customFont1.ToString());
2353
dataGridView.
Rows
.Add("ColumnHeadersDefaultCellStyle", customFont2.ToString());
2354
dataGridView.
Rows
.Add("RowHeadersDefaultCellStyle", customFont3.ToString());
2813
Assert.Equal(rowsCount + 1, control.
Rows
.Count);
2819
Assert.Empty(control.
Rows
);
2853
Assert.Equal(rowsCount1 + 1, control.
Rows
.Count); // + 1 is the new DGV row
2859
Assert.Equal(rowsCount2 + 1, control.
Rows
.Count); // + 1 is the new DGV row
2867
Assert.Equal(rowsCount2 + 1, control.
Rows
.Count); // + 1 is the new DGV row
3387
_dataGridView.
Rows
.Add();
3388
_dataGridView.
Rows
.Add();
3411
_dataGridView.
Rows
.Add();
3412
_dataGridView.
Rows
.Add();
3439
_dataGridView.
Rows
.Add();
3440
_dataGridView.
Rows
.Add();
3444
_dataGridView.
Rows
[0].Selected = true;
3449
_dataGridView.
Rows
[1].Selected = true;
3465
_dataGridView.
Rows
.Add("B");
3466
_dataGridView.
Rows
.Add("A");
3605
dataGridView.
Rows
.Add("A");
3606
dataGridView.
Rows
.Add("B");
3631
_dataGridView.
Rows
.Add("A");
3632
_dataGridView.
Rows
.Add("B");
3659
_dataGridView.
Rows
.Add("A");
3660
_dataGridView.
Rows
.Add("B");
3684
dataGridView.
Rows
.Add("A");
3685
dataGridView.
Rows
.Add("B");
3688
DataGridViewCellFormattingEventArgs cellFormattingEventArgs = new(0, 0, dataGridView.
Rows
[0].Cells[0].Value, dataGridView.
Rows
[0].Cells[0].ValueType, dataGridView.
Rows
[0].Cells[0].InheritedStyle);
3693
cellFormattingEventArgs = new(0, 1, dataGridView.
Rows
[1].Cells[0].Value, dataGridView.
Rows
[1].Cells[0].ValueType, dataGridView.
Rows
[1].Cells[0].InheritedStyle);
3711
dataGridView.
Rows
.Add("A");
3712
dataGridView.
Rows
.Add("B");
3738
dataGridView.
Rows
.Add("A");
3739
dataGridView.
Rows
.Add("B");
3765
dataGridView.
Rows
.Add("A");
3766
dataGridView.
Rows
.Add("B");
4064
_dataGridView.CurrentCell = _dataGridView.
Rows
[_dataGridView.NewRowIndex].Cells[0];
4068
_dataGridView.CurrentCell = _dataGridView.
Rows
[_dataGridView.NewRowIndex].Cells[1];
System\Windows\Forms\DataGridViewTests.Rendering.cs (5)
143
dataGridView.
Rows
.Add(nameof(DataGridView.DefaultCellStyle), customCellStyleFont.ToString());
144
dataGridView.
Rows
.Add(nameof(DataGridView.ColumnHeadersDefaultCellStyle), customColumnHeaderFont.ToString());
145
dataGridView.
Rows
.Add(nameof(DataGridView.RowHeadersDefaultCellStyle), customRowHeaderFont.ToString());
146
for (int i = 0; i < dataGridView.
Rows
.Count; i++)
148
dataGridView.
Rows
[i].HeaderCell.Value = $"Row {i + 1}";
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];