945 references to Rows
PresentationUI (13)
MS\Internal\Documents\RMPublishingDialog.cs (1)
242
foreach (DataGridViewRow row in rightsTable.
Rows
)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (12)
133
Rows
.Insert(0, CreateDataGridViewRow(user, isViewerOwner));
139
rowIndex =
Rows
.Add(CreateDataGridViewRow(user, isViewerOwner));
147
UpdateAllowOwner(
Rows
[rowIndex]);
154
UpdateRowFromEveryone(
Rows
[_everyoneRowIndex],
Rows
[rowIndex]);
184
this.
Rows
.Remove(row);
290
foreach (DataGridViewRow row in
Rows
)
500
if ((e != null) && (e.RowIndex > 0) && (e.RowIndex <
Rows
.Count) &&
503
DataGridViewDisableCheckBoxCell cell =
Rows
[e.RowIndex].Cells[e.ColumnIndex] as DataGridViewDisableCheckBoxCell;
624
for (int rowIndex = _firstNonOwnerRow; rowIndex <
Rows
.Count; rowIndex++)
626
DataGridViewRow currentRow =
Rows
[rowIndex];
786
everyoneRow =
Rows
[_everyoneRowIndex];
System.Windows.Forms (925)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (12)
80
if (index < owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible))
82
int actualRowIndex = owner.
Rows
.DisplayIndexToRowIndex(index);
83
return owner.
Rows
[actualRowIndex].AccessibilityObject;
86
index -= owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
118
int childCount = owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible);
166
return owner.
Rows
[hti.RowIndex].Cells[hti.ColumnIndex].AccessibilityObject;
179
return owner.
Rows
[hti.RowIndex].HeaderCell.AccessibilityObject;
280
int rowIndex = owner.
Rows
.DisplayIndexToRowIndex(i);
281
result[i] = owner.
Rows
[rowIndex].HeaderCell.AccessibilityObject;
321
row = owner.
Rows
.DisplayIndexToRowIndex(row);
323
return owner.
Rows
[row].Cells[column].AccessibilityObject;
333
return this.TryGetOwnerAs(out DataGridView? owner) ? owner.
Rows
.GetRowCount(DataGridViewElementStates.Visible) : base.RowCount;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (44)
1719
Debug.Assert(_ptCurrentCell.Y <
Rows
.Count);
1720
DataGridViewRow dataGridViewRow =
Rows
[_ptCurrentCell.Y]; // un-sharing row
1749
if (!Columns[value.ColumnIndex].Visible || (
Rows
.GetRowState(value.RowIndex) & DataGridViewElementStates.Visible) == 0)
1787
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y <
Rows
.Count);
1788
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(_ptCurrentCell.Y);
1808
bool previousVisibleRowExists = (
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible) != -1);
1826
bool nextVisibleRowExists = (
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible) != -1);
1860
Debug.Assert(_ptCurrentCell.Y <
Rows
.Count);
1862
return
Rows
[_ptCurrentCell.Y];
2293
return
Rows
[firstDisplayedCellAddress.Y].Cells[firstDisplayedCellAddress.X]; // un-shares the row of first displayed cell
2314
&& firstDisplayedCell.RowIndex <
Rows
.Count
2325
if (!
Rows
[firstDisplayedCell.RowIndex].Frozen)
2345
Y =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
2430
int firstDisplayedRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2433
if ((
Rows
.GetRowState(firstDisplayedRowIndex) & DataGridViewElementStates.Frozen) == 0
2537
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value,
Rows
.Count);
2539
if ((
Rows
.GetRowState(value) & DataGridViewElementStates.Visible) == 0)
2544
if ((
Rows
.GetRowState(value) & DataGridViewElementStates.Frozen) != 0)
2560
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2592
int rowsToScroll =
Rows
.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, value);
2931
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2942
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2952
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
3106
int rowCount =
Rows
.Count;
3182
get =>
Rows
.Count;
3192
if (value ==
Rows
.Count)
3200
Rows
.Clear();
3202
else if (value <
Rows
.Count)
3205
while (value <
Rows
.Count)
3207
int currentRowCount =
Rows
.Count;
3208
Rows
.RemoveAt(currentRowCount - (AllowUserToAddRowsInternal ? 2 : 1));
3209
if (
Rows
.Count >= currentRowCount)
3226
int rowsToAdd = value -
Rows
.Count;
3229
Rows
.Add(rowsToAdd);
3601
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
3652
foreach (DataGridViewRow dataGridViewRow in
Rows
) // un-shares all rows!
3671
DataGridViewRow dataGridViewRow =
Rows
[rowIndex]; // un-shares the selected row
3733
strc.Add(
Rows
[rowIndex]); // un-shares the selected row
4018
DataGridViewRow row =
Rows
[rowIndex];
4023
DataGridViewRow row =
Rows
[rowIndex];
4034
DataGridViewRow row =
Rows
[rowIndex];
4039
DataGridViewRow row =
Rows
[rowIndex];
4098
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
4159
&&
Rows
.GetFirstRow(DataGridViewElementStates.Visible) != -1;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (13)
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 (719)
72
if (cellAddress.Y < 0 || cellAddress.Y >=
Rows
.Count)
77
int visibleRowIndex =
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, cellAddress.Y);
118
Rows
.AddInternal(newRow: true, values: null);
119
NewRowIndex =
Rows
.Count - 1;
124
DataGridViewRowEventArgs dgvRowEvent = new(
Rows
[NewRowIndex]);
345
Debug.Assert(rowIndex <
Rows
.Count);
359
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
415
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
425
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
435
dataGridViewCell =
Rows
.SharedRow(rowIndex).HeaderCell;
448
Rows
.SharedRow(rowIndex).GetHeightInfo(rowIndex, out int height, out int minimumHeight);
463
Rows
[rowIndex].Thickness = preferredThickness; // un-sharing the resized row
495
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
497
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
503
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
512
dataGridViewCell =
Rows
.SharedRow(rowIndex).HeaderCell;
525
if (
Rows
.SharedRow(rowIndex).Height < preferredHeight)
527
Rows
[rowIndex].Height = preferredHeight; // un-sharing the row to be resized
542
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
546
rowIndex =
Rows
.GetNextRow(rowIndex,
556
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
974
int totalVisibleRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible);
975
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
976
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
981
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
982
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
1350
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1352
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1368
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
1372
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1373
rowIndex =
Rows
.GetNextRow(rowIndex,
1387
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1388
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
1396
int rowAboveFirstVisibleScrollingRow =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
1408
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
1409
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
1425
if (Columns.Count == 0 &&
Rows
.Count == 0)
1431
&& (
Rows
.GetFirstRow(DataGridViewElementStates.Visible) == -1
1443
allCellsSelected = _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1450
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1452
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1454
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1477
allCellsSelected = _selectedBandIndexes.Count *
Rows
.Count + _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1489
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1491
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1493
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1513
allCellsSelected = _selectedBandIndexes.Count * Columns.Count + _individualSelectedCells.Count == Columns.Count *
Rows
.Count;
1520
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
1522
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
1525
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
1526
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
1528
dataGridViewRow =
Rows
[rowIndex]; // un-shares this row
1998
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
2071
rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2075
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex,
Rows
.SharedRow(rowIndex).GetHeight(rowIndex)))
2076
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width);
2085
rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2088
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2095
rowIndex =
Rows
.GetNextRow(
2105
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2112
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
2121
for (rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2123
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
2126
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex,
Rows
.SharedRow(rowIndex).GetHeight(rowIndex)))
2127
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width);
2173
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
2192
&& rowIndex !=
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
2199
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
2233
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2237
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp,
Rows
.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)))
2238
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width);
2247
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2250
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndexTmp);
2257
rowIndexTmp =
Rows
.GetNextRow(
2267
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndexTmp);
2274
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
2283
for (rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
2285
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible))
2288
? Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp,
Rows
.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp)))
2289
: Math.Max(preferredWidth,
Rows
.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width);
2321
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
2339
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
2358
Rows
[rowIndex].ThicknessInternal = preferredThickness; // un-sharing the resized row
2365
Rows
[rowIndex].ThicknessInternal = preferredThickness; // un-sharing the resized row
2369
Rows
[rowIndex].Thickness = preferredThickness; // un-sharing the resized row
2450
int rowIndex =
Rows
.GetNextRow(rowIndexStart - 1, DataGridViewElementStates.Visible);
2458
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
2624
Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y <
Rows
.Count);
2818
clip.Y = topEdge +
Rows
.SharedRow(index).GetMinimumHeight(index) - mouseBarOffset - 1;
3191
Debug.Assert((AllowUserToAddRowsInternal &&
Rows
.Count == 1) || (!AllowUserToAddRowsInternal &&
Rows
.Count == 0));
3193
if (
Rows
.Count > 0)
3197
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
3268
Debug.Assert(
Rows
.GetFirstRow(DataGridViewElementStates.Visible) == 0);
3541
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException,
Rows
.Count);
3550
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException,
Rows
.Count);
4207
if (rowIndex >=
Rows
.Count)
4213
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
4231
if (rowIndex > -1 && (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
4330
int indexTmp =
Rows
.Count;
4341
DataGridViewElementStates rowState =
Rows
.GetRowState(indexTmp);
4349
indexTmp =
Rows
.GetPreviousRow(
4357
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
4367
indexTmp =
Rows
.GetPreviousRow(
4373
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
4386
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
4392
height +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
4393
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
4405
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
4406
return
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) +
4407
Rows
.SharedRow(lastVisibleRowIndex).GetHeight(lastVisibleRowIndex);
4595
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
4596
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
4830
int nRows =
Rows
.Count;
4848
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
4856
cy +=
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
4892
&& ((
Rows
.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Frozen) != 0
4893
|| (
Rows
.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Visible) == 0))
4900
if ((
Rows
.GetRowState(i) & DataGridViewElementStates.Visible) != 0)
4902
cy +=
Rows
.SharedRow(i).GetHeight(i);
4917
if ((
Rows
.GetRowState(i) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.Visible)) == DataGridViewElementStates.Visible)
4919
int height =
Rows
.SharedRow(i).GetHeight(i);
5279
Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <=
Rows
.Count);
5281
int previousRowIndex =
Rows
.GetPreviousRow(
5287
&& (
Rows
.GetRowState(previousRowIndex) & DataGridViewElementStates.Frozen) == 0
5294
int nextRowIndex =
Rows
.GetNextRow(
5300
&& (
Rows
.GetRowState(nextRowIndex) & DataGridViewElementStates.Frozen) != 0
5313
int rowIndexTmp =
Rows
.GetPreviousRow(rowIndexInserted, DataGridViewElementStates.Visible);
5316
previousRowFrozen = (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5320
rowIndexTmp =
Rows
.GetNextRow(rowIndexInserted - 1, DataGridViewElementStates.Visible);
5324
nextRowFrozen = (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen;
5347
if (((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) != 0 && !frozenStateChanging)
5348
|| ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0 && frozenStateChanging))
5351
rowIndexTmp =
Rows
.GetPreviousRow(rowIndex,
5355
int dataGridViewRowFirst =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
5364
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, true);
5365
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp,
5373
rowIndexTmp =
Rows
.GetNextRow(rowIndex,
5381
rowIndexTmp =
Rows
.GetNextRow(dataGridViewRowLast,
5397
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, false);
5398
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp,
5407
int rowsCount =
Rows
.Count;
5410
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
5433
int rowsCount =
Rows
.Count;
5436
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
5508
Debug.Assert(
Rows
.Count > 1);
5511
DataGridViewRowCancelEventArgs dgvrce = new(
Rows
[NewRowIndex]);
5519
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
5520
DataGridViewRow dataGridViewRow =
Rows
[NewRowIndex];
5521
Rows
.RemoveAtInternal(NewRowIndex, force: false);
5531
NewRowIndex =
Rows
.Count - 1;
5532
Debug.Assert((
Rows
.GetRowState(NewRowIndex) & DataGridViewElementStates.Visible) != 0);
5535
OnDefaultValuesNeeded(new DataGridViewRowEventArgs(
Rows
[NewRowIndex]));
5862
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5873
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5887
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5934
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5942
if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5950
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5958
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
5966
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
6382
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(_trackRow);
6394
dataGridViewRow =
Rows
[_trackRow]; // Un-sharing row
6450
Debug.Assert(rowIndex <
Rows
.Count);
6451
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
6452
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0);
6460
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6492
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6494
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
6497
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6505
rowIndexTmp =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6506
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6508
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6509
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6518
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
6521
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6523
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6524
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6529
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6533
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6535
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
6538
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6543
while (rowIndexTmp != -1 && (
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6545
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6546
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6555
int firstDisplayedFrozenRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6558
?
Rows
.GetNextRow(
6568
?
Rows
.GetNextRow(
6580
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6586
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6587
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6593
&& rowIndexTmp <
Rows
.Count
6599
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0)
6605
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6606
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
6617
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible, DisplayedBandsInfo.OldNumDisplayedScrollingRows - 1);
6620
rowIndexTmp =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
6628
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6630
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6633
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible);
6639
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6642
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, DisplayedBandsInfo.OldNumDisplayedFrozenRows - 1);
6645
rowIndexTmp =
Rows
.GetLastRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
6653
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
6655
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false);
6658
rowIndexTmp =
Rows
.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible);
6679
if (!ColumnHeadersVisible &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 0)
6926
return cellCount + _selectedBandIndexes.Count *
Rows
.Count;
6963
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
6965
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
6984
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
7001
return
Rows
.Count * Columns.Count;
7010
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
7012
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
7013
if (!visibleRequired || (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0)
7040
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
7117
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
7162
Debug.Assert(rowIndex >= -1 && rowIndex <
Rows
.Count);
7165
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
7207
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) == 0)
7214
includeColumnHeaders = (
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Selected) == -1);
7346
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7348
int nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7359
cellContent =
Rows
.SharedRow(rowIndex)
7377
cellContent =
Rows
.SharedRow(rowIndex)
7396
cellContent =
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(
7416
cellContent =
Rows
.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal(
7433
cellContent =
Rows
.SharedRow(rowIndex)
7451
cellContent =
Rows
.SharedRow(rowIndex)
7471
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected);
7509
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
7640
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
7654
cellContent =
Rows
.SharedRow(rowIndex)
7672
cellContent =
Rows
.SharedRow(rowIndex)
7691
cellContent =
Rows
.SharedRow(rowIndex)
7713
cellContent =
Rows
.SharedRow(rowIndex)
7732
cellContent =
Rows
.SharedRow(rowIndex)
7750
cellContent =
Rows
.SharedRow(rowIndex)
7770
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
7797
selectedVisibleRowExists =
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) != 0;
7803
selectedVisibleCellExists = selectedVisibleColumnExists &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) != 0;
7878
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0)
7897
firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
7898
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
8075
nextRowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
8100
cellContent =
Rows
.SharedRow(rowIndex)
8120
cellContent =
Rows
.SharedRow(rowIndex)
8140
cellContent =
Rows
.SharedRow(rowIndex)
8170
cellContent =
Rows
.SharedRow(rowIndex)
8621
int visibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
8622
int frozenVisibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
8654
&& (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0
8656
&& (
Rows
.GetRowState(_trackRowEdge) & DataGridViewElementStates.Frozen) != 0
8658
&& (
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Frozen) == 0)
8662
int firstUnfrozenRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
8692
&& ((
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0
8693
|| (_trackRowEdge != -1 && (
Rows
.GetRowState(_trackRowEdge) & DataGridViewElementStates.Frozen) == 0))
8711
if (VerticalScrollingOffset +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
8755
int firstRowIndex = hti._row >= 0 ? hti._row :
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
8873
if (((_ptAnchorCell.Y != -1 && (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0)
8874
|| (_ptCurrentCell.Y != -1 && (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0))
8896
if (VerticalScrollingOffset +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
9069
int preferredHeight = Math.Min(minimumHeight +
Rows
.GetRowsHeight(DataGridViewElementStates.Visible), proposedConstraints.Height);
9082
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9089
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
9091
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) == 0)
9100
for (indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9114
cy +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9115
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9135
cy +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9136
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
9143
int displayHeight = cutOverflow && cy +
Rows
.SharedRow(indexTmp).GetHeight(indexTmp) > data.Bottom
9145
:
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9178
int indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9181
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9189
indexTmp =
Rows
.GetNextRow(indexTmp,
9197
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0
9198
&& (
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9202
rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9210
indexTmp =
Rows
.GetNextRow(indexTmp,
9254
Debug.Assert(index >= 0 && index <
Rows
.Count);
9255
Debug.Assert((
Rows
.GetRowState(index) & DataGridViewElementStates.Visible) != 0);
9259
int indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
9267
y +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9268
indexTmp =
Rows
.GetNextRow(indexTmp,
9290
indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
9296
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0
9297
&& (
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
9306
y +=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9307
indexTmp =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
9314
indexTmp =
Rows
.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow,
9319
y -=
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
9325
indexTmp =
Rows
.GetPreviousRow(indexTmp,
9483
int rowHeight =
Rows
.SharedRow(hti._row).GetHeight(hti._row);
9500
indexTmp =
Rows
.GetPreviousRow(hti._row, DataGridViewElementStates.Visible);
9625
int rowHeight =
Rows
.SharedRow(hti._row).GetHeight(hti._row);
9639
indexTmp =
Rows
.GetPreviousRow(hti._row,
9664
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
9753
dataGridViewCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; // un-share the edited cell
9841
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9908
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
9915
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
9929
Rows
.InvalidateCachedRowsHeights();
9944
Debug.Assert(lo <
Rows
.Count);
9945
Debug.Assert(hi <
Rows
.Count);
9947
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 0)
9958
if ((
Rows
.GetRowState(lo) & DataGridViewElementStates.Visible) == 0)
9960
lo =
Rows
.GetNextRow(lo, DataGridViewElementStates.Visible);
9970
if ((
Rows
.GetRowState(hi) & DataGridViewElementStates.Visible) == 0)
9972
hi =
Rows
.GetPreviousRow(hi, DataGridViewElementStates.Visible);
9983
if ((
Rows
.GetRowState(lo) & DataGridViewElementStates.Frozen) != 0)
9995
&&
Rows
.GetRowCount(
10020
if ((
Rows
.GetRowState(hi) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen)
10032
else if (
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0)
10047
if ((
Rows
.GetRowState(i) & DataGridViewElementStates.Visible) == 0)
10100
return columnIndex >= Columns.Count || rowIndex >=
Rows
.Count || columnIndex == -1 || rowIndex == -1;
10105
return rowIndex >=
Rows
.Count || rowIndex == -1;
10216
int totalVisibleRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible);
10221
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
10222
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
10242
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10243
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10271
&& DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10272
&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount -
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10328
if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows ==
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)
10447
&& (includeNewRow || !AllowUserToAddRowsInternal || firstDisplayedCellAddress.Y !=
Rows
.Count - 1))
10648
Debug.Assert(rowIndex ==
Rows
.Count - 1);
10652
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
10666
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10682
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
10696
int rowHeight =
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
10697
Rows
.SharedRow(rowIndex).CachedThickness = rowHeight;
10714
if (
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 1)
10844
if (
Rows
.Count > 0)
10856
_ =
Rows
[NewRowIndex];
10863
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10865
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10885
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
10887
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
10925
if (
Rows
.Count > 0 && dataGridViewColumn.CellType is null)
10992
if (
Rows
.Count > 0)
11001
_ =
Rows
[NewRowIndex];
11015
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
11017
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
11036
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
11038
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
11063
CorrectRowFrozenState(dataGridViewRow, rowState,
Rows
.Count);
11132
CorrectRowFrozenStates(dataGridViewRows, rowIndexInserted:
Rows
.Count);
11388
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
11390
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
11393
int rowHeight =
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
11394
Rows
.SharedRow(rowIndex).CachedThickness = rowHeight;
11568
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(e.RowIndex,
Rows
.Count, "e.RowIndex");
11609
_ =
Rows
[e.RowIndex];
11642
rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
11693
_ =
Rows
[e.RowIndex];
11718
_ =
Rows
[e.RowIndex];
11763
_ =
Rows
[e.RowIndex];
11791
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
11792
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
11879
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
11880
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
11910
_ =
Rows
[e.RowIndex];
11931
_ =
Rows
[e.RowIndex];
11995
_ =
Rows
[e.RowIndex];
12162
if (hti._row >=
Rows
.Count)
12164
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
12188
&& IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row)
12343
&& (Columns[hti._col].Selected || IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row))
12454
if (isControlDown && ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0))
12466
&& _ptAnchorCell.Y > -1 && (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
12522
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0)
12525
((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0));
12548
&& (((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)
12549
|| IsSharedCellSelected(
Rows
.SharedRow(hti._row).Cells[hti._col], hti._row))
12676
_ =
Rows
[e.RowIndex];
12699
_ =
Rows
[e.RowIndex];
12719
_ =
Rows
[e.RowIndex];
12777
_ =
Rows
[e.RowIndex];
13115
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
13116
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
13161
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
13162
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
13255
Rows
.ClearInternal(recreateNewRow: false);
13272
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Displayed);
13275
_lstRows.Add(
Rows
[rowIndex]);
13279
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Displayed);
13336
if (Columns.Count != 0 &&
Rows
.Count == 0)
13755
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
14502
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.ReadOnly) == 0
14723
dataGridViewRow =
Rows
[index];
14844
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
14865
&& (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.ReadOnly) == 0
14909
Debug.Assert(!
Rows
[dataGridViewCell.RowIndex].ReadOnly);
15040
int totalVisibleHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible);
15041
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
15382
forceCurrentCellSelection:
Rows
.GetRowCount(DataGridViewElementStates.Visible) == 1);
15485
if (
Rows
.Count > 0)
15497
_ =
Rows
[NewRowIndex];
15504
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
15506
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
15525
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
15527
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
15748
_ =
Rows
[_ptCurrentCell.Y];
15807
_ =
Rows
[_ptCurrentCell.Y];
15841
_ =
Rows
[_ptCurrentCell.Y];
15962
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
15983
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
15994
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16051
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16101
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16113
if (rowIndex <
Rows
.Count)
16123
Debug.Assert(
Rows
[rowIndex].Resizable == DataGridViewTriState.True);
16225
&& _ptMouseEnteredCell.Y >= -1 && _ptMouseEnteredCell.Y <
Rows
.Count)
16447
if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex <
Rows
.Count)
16646
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
16648
&& _vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16654
Debug.Assert(totalVisibleFrozenHeight ==
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
16659
if (_vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16926
&& !
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X].ReadOnly) // Un-shares the row
17169
Rows
.ClearInternal(recreateNewRow: false);
17175
for (int rowIndex = 0; rowIndex <
Rows
.Count; rowIndex++)
17177
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
17302
Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted <
Rows
.Count);
17304
if (rowIndexDeleted >= 0 && rowIndexDeleted <
Rows
.Count)
17306
foreach (DataGridViewCell cell in
Rows
[rowIndexDeleted].Cells)
17321
int rowIndexPrevious =
Rows
.GetPreviousRow(rowIndexDeleted, DataGridViewElementStates.Visible);
17322
int rowIndexNext =
Rows
.GetNextRow(rowIndexDeleted, DataGridViewElementStates.Visible);
17326
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
17327
newY = rowIndexNext > -1 && rowIndexNext <
Rows
.Count - 1 ? rowIndexNext - 1 : rowIndexPrevious;
17600
&&
Rows
.Count == 0
17625
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
17679
if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex <
Rows
.Count)
17724
if (rowIndex <
Rows
.Count && columnIndex < Columns.Count)
17733
DataGridViewRowEventArgs dgvre = new(
Rows
[NewRowIndex]);
17765
if (calledAddNewOnTheDataConnection && rowIndex >
Rows
.Count - 1)
17768
rowIndex = Math.Min(rowIndex,
Rows
.Count - 1);
17790
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
17791
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
17845
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
17933
rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
17951
&& rowIndex ==
Rows
.GetFirstRow(DataGridViewElementStates.Visible)))
18005
if (isControlDown && ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0))
18073
if (hti._row >=
Rows
.Count)
18075
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
18100
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Visible) == 0)
18113
&& (
Rows
.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0)
18178
else if ((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0)
18181
((
Rows
.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0));
18385
if (rowIndex <
Rows
.Count && columnIndex < Columns.Count)
18397
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
18398
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18485
SelectRowRange(
Rows
.GetNextRow(_trackRowEdge, DataGridViewElementStates.Visible),
18491
SelectRowRange(
Rows
.GetNextRow(hti._row, DataGridViewElementStates.Visible),
18497
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18504
Rows
.GetPreviousRow(_trackRowEdge, DataGridViewElementStates.Visible),
18511
Rows
.GetPreviousRow(hti._row, DataGridViewElementStates.Visible),
18518
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18524
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18527
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18534
Rows
.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible),
18536
SelectRowRange(
Rows
.GetNextRow(_trackRow, DataGridViewElementStates.Visible),
18627
newState =
Rows
.GetRowState(rowIndex);
18670
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Displayed, false);
18681
bool rowDisplayed = (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0;
18707
dataGridViewRow =
Rows
[rowIndex];
18721
if (rowVisible &&
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 1)
18797
if (dataGridViewCell is not null && rowIndex <
Rows
.Count && columnIndex < Columns.Count)
18799
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18844
Debug.Assert(rowIndex <
Rows
.Count && columnIndex < Columns.Count);
18845
dataGridViewCell =
Rows
.SharedRow(rowIndex).Cells[columnIndex];
18923
int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
18929
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
19148
int rowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
19197
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19201
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19217
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
19218
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19228
Debug.Assert((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Visible) != 0);
19234
if ((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0)
19250
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true);
19251
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
19272
int visibleRowsHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Displayed);
19561
if (Columns.Count > 0 ||
Rows
.Count > 0)
19628
indexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19642
int rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19643
Rows
.SharedRow(indexTmp).CachedThickness = rowHeight;
19647
rowBounds.Height =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19655
indexTmpNext =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
19659
dataGridViewRow =
Rows
.SharedRow(indexTmp);
19664
Rows
.GetRowState(indexTmp),
19683
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0);
19684
Debug.Assert((
Rows
.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0);
19698
int rowHeight =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19699
Rows
.SharedRow(indexTmp).CachedThickness = rowHeight;
19703
rowBounds.Height =
Rows
.SharedRow(indexTmp).GetHeight(indexTmp);
19711
indexTmpNext =
Rows
.GetNextRow(indexTmp, DataGridViewElementStates.Visible);
19715
dataGridViewRow =
Rows
.SharedRow(indexTmp);
19720
Rows
.GetRowState(indexTmp),
19834
DataGridViewRow newRow =
Rows
.SharedRow(NewRowIndex);
19840
newRow =
Rows
[NewRowIndex]; // un-share the 'new row'.
19886
Columns[_ptCurrentCell.X].Width,
Rows
.SharedRow(_ptCurrentCell.Y).GetHeight(_ptCurrentCell.Y));
19900
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
19902
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
20011
if (rowIndex == NewRowIndex || rowIndex >=
Rows
.Count)
20017
DataGridViewRowCancelEventArgs dgvrce = new(
Rows
[rowIndex]);
20021
DataGridViewRow dataGridViewRow =
Rows
[rowIndex];
20024
int dataGridRowsCount =
Rows
.Count;
20074
if (dataGridRowsCount !=
Rows
.Count)
20087
Rows
.RemoveAtInternal(rowIndex, force: false);
20214
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
20224
nextVisibleRowIndex =
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
20763
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20800
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20852
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
20912
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21010
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21137
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
21138
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
21220
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21241
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21258
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21612
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
21694
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21715
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
21732
&& (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
22146
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
23003
nextScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
23014
if ((
Rows
.GetRowState(nextScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23018
int firstDisplayedScrollingRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
23026
jumpRows =
Rows
.GetRowCount(DataGridViewElementStates.Visible,
23047
nextScreenVisibleRowIndexTmp =
Rows
.GetNextRow(nextScreenVisibleRowIndex, DataGridViewElementStates.Visible);
23185
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23212
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23264
previousScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
23275
int jumpRows = (
Rows
.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0
23288
previousScreenVisibleRowIndexTmp =
Rows
.GetPreviousRow(previousScreenVisibleRowIndex, DataGridViewElementStates.Visible);
23297
if ((
Rows
.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0)
23300
int firstDisplayedScrollingRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
23310
previousScreenVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
23443
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23470
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
23525
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
24387
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) == 0)
24605
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
24614
previousVisibleRowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
25037
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25069
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25110
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25158
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25240
if ((
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0)
25406
Debug.Assert(NewRowIndex ==
Rows
.Count - 1);
25407
Rows
.RemoveAtInternal(NewRowIndex, force: false);
25436
dataGridViewCurrentCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X];
25461
dataGridViewCurrentCell =
Rows
[_ptCurrentCell.Y].Cells[_ptCurrentCell.X];
25480
Rows
.ClearInternal(recreateNewRow: false);
25601
Rows
.ClearInternal(recreateNewRow: true);
25625
Rows
.AddInternal(RowTemplateClone);
25629
Rows
.AddCopiesInternal(0, rowsCount - 1);
25678
foreach (DataGridViewRow row in
Rows
)
25996
for (int rowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
25998
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
26000
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
26019
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
26028
Debug.Assert(rowIndex <
Rows
.Count);
26030
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
26275
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
26276
Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow <
Rows
.Count);
26278
Debug.Assert((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
26335
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
26337
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0)
26350
rowsToScroll =
Rows
.GetRowCount(DataGridViewElementStates.Visible, rowIndex, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26357
int yRowBottomEdge = GetRowYFromIndex(rowIndex) +
Rows
.SharedRow(rowIndex).GetHeight(rowIndex);
26360
yRowBottomEdge -=
Rows
.SharedRow(firstDisplayedScrollingRow).GetHeight(firstDisplayedScrollingRow);
26364
firstDisplayedScrollingRow =
Rows
.GetNextRow(firstDisplayedScrollingRow, DataGridViewElementStates.Visible);
26392
Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >=
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen));
26400
int frozenRowsThickness =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
26423
if (EditingControl is not null && (
Rows
.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)
26451
int firstVisibleScrollingRow =
Rows
.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen);
26453
int newScrolledOffRowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26472
deltaY -=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26473
newFirstVisibleScrollingRow =
Rows
.GetNextRow(
26490
deltaY = -
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26491
rows =
Rows
.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26504
newFirstVisibleScrollingRow =
Rows
.GetPreviousRow(
26510
deltaY +=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26538
deltaY =
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26541
newFirstVisibleScrollingRow =
Rows
.GetNextRow(newFirstVisibleScrollingRow, DataGridViewElementStates.Visible);
26548
deltaY +=
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26554
newFirstVisibleScrollingRow =
Rows
.GetPreviousRow(
26559
deltaY = -
Rows
.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow);
26562
int scrollingRowTmp =
Rows
.GetPreviousRow(newFirstVisibleScrollingRow,
26567
deltaY -=
Rows
.SharedRow(scrollingRowTmp).GetHeight(scrollingRowTmp);
26589
scrollHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26590
rowCount =
Rows
.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow);
26595
scrollHeight = -
Rows
.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26596
rowCount = -
Rows
.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow);
26626
int rowIndex = 0, maxRowIndex =
Rows
.Count;
26630
_ =
Rows
[rowIndex];
26647
int rowIndex = 0, maxRowIndex =
Rows
.Count;
26650
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
26690
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
26731
if (index >=
Rows
.Count)
26733
index -=
Rows
.Count;
26739
return
Rows
.SharedRow(index).Cells[columnIndex];
26766
return
Rows
.SharedRow(rowIndex).Cells[index];
26818
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
26836
&& !IsSharedCellVisible(
Rows
.SharedRow(rowIndex).Cells[columnIndex], rowIndex))
26854
Debug.Assert(rowIndex >= 0 && columnIndex < Columns.Count && rowIndex <
Rows
.Count);
26898
currentCell =
Rows
.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX];
26902
currentCell =
Rows
[oldCurrentCellY].Cells[oldCurrentCellX];
26982
if (rowIndex >=
Rows
.Count)
27013
currentCell =
Rows
[rowIndex].Cells[columnIndex];
27021
if (oldCurrentCellX < Columns.Count && oldCurrentCellY <
Rows
.Count)
27026
if (oldCurrentCellY != _ptCurrentCell.Y && RowHeadersVisible && oldCurrentCellY <
Rows
.Count)
27111
currentCell =
Rows
.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX];
27115
currentCell =
Rows
[oldCurrentCellY].Cells[oldCurrentCellX];
27185
if (oldCurrentCellX < Columns.Count && oldCurrentCellY <
Rows
.Count)
27190
if (RowHeadersVisible && oldCurrentCellY <
Rows
.Count)
27408
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
27541
Debug.Assert(columnIndex >= 0 && rowIndex >= 0 && columnIndex < Columns.Count && rowIndex <
Rows
.Count);
27544
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
27545
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27548
DataGridViewCell dataGridViewCell =
Rows
[rowIndex].Cells[columnIndex];
27572
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27577
for (int row = rowIndex + 1; row <
Rows
.Count; row++)
27579
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27587
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false);
27590
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27597
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27650
Debug.Assert(rowIndex >= 0 && rowIndex <
Rows
.Count);
27652
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27670
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, true);
27675
Rows
.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false);
27691
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
27694
DataGridViewRow dataGridViewRow =
Rows
.SharedRow(rowIndex);
27695
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
27698
DataGridViewCell dataGridViewCell =
Rows
[rowIndex].Cells[columnIndex];
27721
if (
Rows
.Count > BulkPaintThreshold)
27735
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27740
for (int row = rowIndex + 1; row <
Rows
.Count; row++)
27742
dataGridViewCellTmp =
Rows
[row].Cells[columnIndex];
27767
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, false);
27770
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27777
dataGridViewCellTmp =
Rows
[rowIndex].Cells[column];
27805
if (!Columns[columnIndex].Visible || (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0)
27940
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0)
27943
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
27949
if ((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0)
27952
((
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0));
28137
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28142
DataGridViewElementStates rowState =
Rows
.GetRowState(rowIndex);
28153
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, true);
28160
Rows
.SetRowState(rowIndex, DataGridViewElementStates.Selected, false);
28311
int visibleFrozenRows =
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28314
int rowVFIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28316
Rows
.SetRowState(rowVFIndex, DataGridViewElementStates.Frozen, false);
28317
Debug.Assert(
Rows
.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0);
28350
Rows
.Sort(comparer!, direction == ListSortDirection.Ascending);
28378
int rowVIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28382
rowVIndex =
Rows
.GetNextRow(rowVIndex, DataGridViewElementStates.Visible);
28387
Rows
.SetRowState(rowVIndex, DataGridViewElementStates.Frozen, true);
28495
int totalVisibleFrozenHeight =
Rows
.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
28502
if (_vertScrollBar.Value +
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28526
int firstDisplayedScrollingRowHeight =
Rows
.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow);
28562
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28583
nextVisibleRowIndex =
Rows
.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
28723
int firstVisibleRowIndex =
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
28744
previousVisibleRowIndex =
Rows
.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible);
28752
int lastVisibleRowIndex =
Rows
.GetLastRow(DataGridViewElementStates.Visible);
28933
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
28947
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
29002
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
29013
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexStart,
Rows
.Count);
29016
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexEnd,
Rows
.Count);
29046
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex,
Rows
.Count);
29048
Rows
.InvalidateCachedRowsHeights();
29050
bool rowVisible = (rowIndex >= 0 && (
Rows
.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0);
29089
rowIndex =
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
29185
rowIndexTmp =
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
29189
if (((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29191
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed);
29194
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
29208
if (((
Rows
.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed)
29210
Rows
.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed);
29213
rowIndexTmp =
Rows
.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible);
29240
&& _ptMouseEnteredCell.Y <
Rows
.Count)
29267
&& _ptMouseEnteredCell.Y <
Rows
.Count)
29368
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29378
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29393
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29403
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29422
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29445
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29484
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29508
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29529
Rows
.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29565
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29621
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29634
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29668
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29684
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29711
Rows
.GetNextRow(anchorRowIndex, DataGridViewElementStates.Visible),
29765
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29781
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29815
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29831
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29858
Rows
.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible),
29879
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29888
Rows
.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29905
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
29914
Rows
.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible),
30050
dataGridViewCell =
Rows
.SharedRow(hti._row).Cells[hti._col];
30058
dataGridViewCell =
Rows
.SharedRow(hti._row).HeaderCell;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
208
return _ownerDataGridView.
Rows
.Count == 0 ? null : Parent.GetChild(1);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (2)
792
DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
793
DataGridView.
Rows
.InvalidateCachedRowsHeight(elementState);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
483
rowIndex < DataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (3)
82
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
125
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
170
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (27)
155
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
257
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
305
if (i < 0 || i >= DataGridView.
Rows
.Count - 1)
313
|| string.IsNullOrEmpty(DataGridView.
Rows
[i].Cells[j].Value?.ToString()))
318
_nonEmptyNeighbors.Add(DataGridView.
Rows
[i].Cells[j].AccessibilityObject.Bounds);
436
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
506
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
538
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
743
Debug.Assert(DataGridView.
Rows
.GetRowState(RowIndex) == DataGridView.
Rows
.SharedRow(RowIndex).State);
964
DataGridViewElementStates rowState = DataGridView.
Rows
.GetRowState(rowIndex);
990
isLastVisibleRow: rowIndex == DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible));
1293
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1729
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1799
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1805
if (DataGridView.
Rows
.SharedRow(rowIndex) != OwningRow)
1810
DataGridViewElementStates rowEffectiveState = DataGridView.
Rows
.GetRowState(rowIndex);
1879
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1913
if (DataGridView.
Rows
.SharedRow(rowIndex).HasDefaultCellStyle)
1915
rowStyle = DataGridView.
Rows
.SharedRow(rowIndex).DefaultCellStyle;
2417
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, dataGridView.
Rows
.Count);
3046
if (DataGridView is not null && e.ColumnIndex < DataGridView.Columns.Count && e.RowIndex < DataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (8)
62
: _owner.DataGridView.
Rows
.GetVisibleIndex(_owner.OwningRow) + RowStartIndex;
466
if (_owner.OwningRow.Index == _owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
474
int previousVisibleRow = _owner.DataGridView.
Rows
.GetPreviousRow(_owner.OwningRow.Index, DataGridViewElementStates.Visible);
475
return _owner.DataGridView.
Rows
[previousVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject;
479
if (_owner.OwningRow.Index == _owner.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
485
int nextVisibleRow = _owner.DataGridView.
Rows
.GetNextRow(_owner.OwningRow.Index, DataGridViewElementStates.Visible);
486
return _owner.DataGridView.
Rows
[nextVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject;
738
? _owner.DataGridView.
Rows
.GetVisibleIndex(_owner.OwningRow)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellPaintingEventArgs.cs (3)
80
if (RowIndex < -1 || RowIndex >= _dataGridView.
Rows
.Count)
109
if (RowIndex < -1 || RowIndex >= _dataGridView.
Rows
.Count)
144
if (RowIndex < -1 || RowIndex >= _dataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
834
rowIndex < DataGridView.
Rows
.Count)
972
rowIndex < 0 || rowIndex >= DataGridView.
Rows
.Count)
977
int visibleRowIndex = DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (5)
86
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
129
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
173
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
213
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
267
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (8)
951
for (rowIndex = dataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible);
953
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible))
955
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
976
rowIndex = dataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
979
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
995
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex,
1004
dataGridViewRow = dataGridView.
Rows
.SharedRow(rowIndex);
1020
rowIndex = dataGridView.
Rows
.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
1067
foreach (DataGridViewRow row in DataGridView.
Rows
)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1767
DataGridViewElementStates rowState = DataGridView.
Rows
.GetRowState(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (11)
52
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
115
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
161
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
204
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
248
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
292
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
333
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
396
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
439
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
480
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
522
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (4)
234
(DataGridView is not null && (rowIndex < 0 || rowIndex >= DataGridView.
Rows
.Count)))
239
if (DataGridView is not null && DataGridView.
Rows
.SharedRow(rowIndex) != OwningRow)
363
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
365
if (DataGridView.
Rows
.SharedRow(rowIndex) != OwningRow)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
93
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
167
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
207
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
763
rowIndex < DataGridView.
Rows
.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (7)
51
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
120
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
162
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
212
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
257
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
300
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
342
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (10)
1215
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1242
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1291
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1372
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
1375
if (DataGridView is null || DataGridView.
Rows
.SharedRow(rowIndex).Index != -1)
1386
return DataGridView.
Rows
.GetRowState(rowIndex);
1398
DataGridView.
Rows
.InvalidateCachedRowCount(elementState);
1399
DataGridView.
Rows
.InvalidateCachedRowsHeight(elementState);
1426
DataGridViewRow sharedRow = dataGridView.
Rows
.SharedRow(rowIndex);
1468
sharedRow = dataGridView.
Rows
.SharedRow(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (5)
35
? dataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow) + 1
36
: dataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow)
98
? _owningDataGridViewRow.DataGridView.
Rows
.GetVisibleIndex(_owningDataGridViewRow) + RowStartIndex
341
if (_owningDataGridViewRow.Index != _owningDataGridViewRow.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
355
if (_owningDataGridViewRow.Index != _owningDataGridViewRow.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
100
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
297
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
567
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.
Rows
.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (6)
155
if (Owner.OwningRow.Index == Owner.DataGridView.
Rows
.GetLastRow(DataGridViewElementStates.Visible))
160
int nextVisibleRow = Owner.DataGridView.
Rows
.GetNextRow(Owner.OwningRow.Index, DataGridViewElementStates.Visible);
161
int actualDisplayIndex = Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, nextVisibleRow);
174
if (Owner.OwningRow.Index == Owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible))
187
int previousVisibleRow = Owner.DataGridView.
Rows
.GetPreviousRow(Owner.OwningRow.Index, DataGridViewElementStates.Visible);
188
int actualDisplayIndex = Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible, 0, previousVisibleRow);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPostPaintEventArgs.cs (10)
64
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
69
_dataGridView.
Rows
.SharedRow(RowIndex).DrawFocus(
81
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
86
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
99
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
110
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
123
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
128
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
152
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
157
_dataGridView.
Rows
.SharedRow(RowIndex).PaintHeader(
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPrePaintEventArgs.cs (10)
81
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
86
_dataGridView.
Rows
.SharedRow(RowIndex).DrawFocus(
98
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
103
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
116
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
127
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
140
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
145
_dataGridView.
Rows
.SharedRow(RowIndex).PaintCells(
169
if (RowIndex < 0 || RowIndex >= _dataGridView.
Rows
.Count)
174
_dataGridView.
Rows
.SharedRow(RowIndex).PaintHeader(
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
63
DataGridViewRowCollection dataGridViewRows = DataGridView.
Rows
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (3)
209
Owner.DataGridView.
Rows
.GetRowCount(DataGridViewElementStates.Visible) > 0)
213
DataGridViewRow row = Owner.DataGridView.
Rows
[Owner.DataGridView.
Rows
.GetFirstRow(DataGridViewElementStates.Visible)];
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (7)
57
_sampleDataGridViewSelected.
Rows
.Add(row);
58
_sampleDataGridViewSelected.
Rows
[0].Selected = true;
67
_sampleDataGridView.
Rows
.Add(row);
306
_sampleDataGridView.
Rows
[0].Height = _sampleDataGridView.Height;
309
_sampleDataGridViewSelected.
Rows
[0].Height = _sampleDataGridViewSelected.Height;
320
Debug.Assert(e.Cell == _sampleDataGridView.
Rows
[0].Cells[0], "the sample data grid view has only one cell");
332
dataGridView.
Rows
[0].Height = dataGridView.Height;