2600 references to Rows
PresentationUI (13)
MS\Internal\Documents\RMPublishingDialog.cs (1)
242foreach (DataGridViewRow row in rightsTable.Rows)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (12)
133Rows.Insert(0, CreateDataGridViewRow(user, isViewerOwner)); 139rowIndex = Rows.Add(CreateDataGridViewRow(user, isViewerOwner)); 147UpdateAllowOwner(Rows[rowIndex]); 154UpdateRowFromEveryone(Rows[_everyoneRowIndex], Rows[rowIndex]); 184this.Rows.Remove(row); 290foreach (DataGridViewRow row in Rows) 500if ((e != null) && (e.RowIndex > 0) && (e.RowIndex < Rows.Count) && 503DataGridViewDisableCheckBoxCell cell = Rows[e.RowIndex].Cells[e.ColumnIndex] as DataGridViewDisableCheckBoxCell; 624for (int rowIndex = _firstNonOwnerRow; rowIndex < Rows.Count; rowIndex++) 626DataGridViewRow currentRow = Rows[rowIndex]; 786everyoneRow = Rows[_everyoneRowIndex];
System.Windows.Forms (937)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (12)
80if (index < owner.Rows.GetRowCount(DataGridViewElementStates.Visible)) 82int actualRowIndex = owner.Rows.DisplayIndexToRowIndex(index); 83return owner.Rows[actualRowIndex].AccessibilityObject; 86index -= owner.Rows.GetRowCount(DataGridViewElementStates.Visible); 118int childCount = owner.Rows.GetRowCount(DataGridViewElementStates.Visible); 166return owner.Rows[hti.RowIndex].Cells[hti.ColumnIndex].AccessibilityObject; 179return owner.Rows[hti.RowIndex].HeaderCell.AccessibilityObject; 280int rowIndex = owner.Rows.DisplayIndexToRowIndex(i); 281result[i] = owner.Rows[rowIndex].HeaderCell.AccessibilityObject; 321row = owner.Rows.DisplayIndexToRowIndex(row); 323return owner.Rows[row].Cells[column].AccessibilityObject; 333return this.TryGetOwnerAs(out DataGridView? owner) ? owner.Rows.GetRowCount(DataGridViewElementStates.Visible) : base.RowCount;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (46)
1714Debug.Assert(_ptCurrentCell.Y < Rows.Count); 1715DataGridViewRow dataGridViewRow = Rows[_ptCurrentCell.Y]; // un-sharing row 1744if (!Columns[value.ColumnIndex].Visible || (Rows.GetRowState(value.RowIndex) & DataGridViewElementStates.Visible) == 0) 1782Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y < Rows.Count); 1783DataGridViewRow dataGridViewRow = Rows.SharedRow(_ptCurrentCell.Y); 1803bool previousVisibleRowExists = (Rows.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible) != -1); 1821bool nextVisibleRowExists = (Rows.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible) != -1); 1855Debug.Assert(_ptCurrentCell.Y < Rows.Count); 1857return Rows[_ptCurrentCell.Y]; 2288return Rows[firstDisplayedCellAddress.Y].Cells[firstDisplayedCellAddress.X]; // un-shares the row of first displayed cell 2309&& firstDisplayedCell.RowIndex < Rows.Count 2320if (!Rows[firstDisplayedCell.RowIndex].Frozen) 2340Y = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 2425int firstDisplayedRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 2428if ((Rows.GetRowState(firstDisplayedRowIndex) & DataGridViewElementStates.Frozen) == 0 2532ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, Rows.Count); 2534if ((Rows.GetRowState(value) & DataGridViewElementStates.Visible) == 0) 2539if ((Rows.GetRowState(value) & DataGridViewElementStates.Frozen) != 0) 2555int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 2587int rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, value); 2926DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 2937DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 2947DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 3101int rowCount = Rows.Count; 3121int rowCount = Rows.Count; 3124Debug.Assert((Rows.GetRowState(rowIndex) & DataGridViewElementStates.ReadOnly) == 0); 3177get => Rows.Count; 3187if (value == Rows.Count) 3195Rows.Clear(); 3197else if (value < Rows.Count) 3200while (value < Rows.Count) 3202int currentRowCount = Rows.Count; 3203Rows.RemoveAt(currentRowCount - (AllowUserToAddRowsInternal ? 2 : 1)); 3204if (Rows.Count >= currentRowCount) 3221int rowsToAdd = value - Rows.Count; 3224Rows.Add(rowsToAdd); 3596int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 3647foreach (DataGridViewRow dataGridViewRow in Rows) // un-shares all rows! 3666DataGridViewRow dataGridViewRow = Rows[rowIndex]; // un-shares the selected row 3728strc.Add(Rows[rowIndex]); // un-shares the selected row 4013DataGridViewRow row = Rows[rowIndex]; 4018DataGridViewRow row = Rows[rowIndex]; 4029DataGridViewRow row = Rows[rowIndex]; 4034DataGridViewRow row = Rows[rowIndex]; 4093int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 4154&& Rows.GetFirstRow(DataGridViewElementStates.Visible) != -1;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (14)
339int dataGridViewRowsCount = _owner.Rows.Count; 494&& CurrencyManager.List.Count == (_owner.AllowUserToAddRowsInternal ? _owner.Rows.Count - 1 : _owner.Rows.Count)) 596if (_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); 663if (_owner.Rows.Count > 0 689if (_owner.Rows.Count == (_owner.AllowUserToAddRowsInternal ? 1 : 0)) 763int result = _owner.Rows.Count; 764if (_owner.AllowUserToAddRowsInternal && _owner.Rows.Count > 0) 1244else if (rowIndex < _owner.Rows.Count) 1255if ((_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)
27if (cellAddress.Y < 0 || cellAddress.Y >= Rows.Count) 32int visibleRowIndex = Rows.GetRowCount(DataGridViewElementStates.Visible, 0, cellAddress.Y); 73Rows.AddInternal(newRow: true, values: null); 74NewRowIndex = Rows.Count - 1; 79DataGridViewRowEventArgs dgvRowEvent = new(Rows[NewRowIndex]); 300Debug.Assert(rowIndex < Rows.Count); 314DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 370Debug.Assert(rowIndex >= 0 && rowIndex < Rows.Count); 380dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 390dataGridViewCell = Rows.SharedRow(rowIndex).HeaderCell; 403Rows.SharedRow(rowIndex).GetHeightInfo(rowIndex, out int height, out int minimumHeight); 418Rows[rowIndex].Thickness = preferredThickness; // un-sharing the resized row 450for (int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 452rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 458dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 467dataGridViewCell = Rows.SharedRow(rowIndex).HeaderCell; 480if (Rows.SharedRow(rowIndex).Height < preferredHeight) 482Rows[rowIndex].Height = preferredHeight; // un-sharing the row to be resized 497int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 501rowIndex = Rows.GetNextRow(rowIndex, 511rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 929int totalVisibleRowCount = Rows.GetRowCount(DataGridViewElementStates.Visible); 930int totalVisibleHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible); 931int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 936if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 937&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 1305for (int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 1307rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 1323int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 1327cy += Rows.SharedRow(rowIndex).GetHeight(rowIndex); 1328rowIndex = Rows.GetNextRow(rowIndex, 1342cy += Rows.SharedRow(rowIndex).GetHeight(rowIndex); 1343rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 1351int rowAboveFirstVisibleScrollingRow = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 1363cy += Rows.SharedRow(rowIndex).GetHeight(rowIndex); 1364rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 1380if (Columns.Count == 0 && Rows.Count == 0) 1386&& (Rows.GetFirstRow(DataGridViewElementStates.Visible) == -1 1398allCellsSelected = _individualSelectedCells.Count == Columns.Count * Rows.Count; 1405for (int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 1407rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 1409dataGridViewRow = Rows[rowIndex]; // un-shares this row 1432allCellsSelected = _selectedBandIndexes.Count * Rows.Count + _individualSelectedCells.Count == Columns.Count * Rows.Count; 1444for (int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 1446rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 1448dataGridViewRow = Rows[rowIndex]; // un-shares this row 1468allCellsSelected = _selectedBandIndexes.Count * Columns.Count + _individualSelectedCells.Count == Columns.Count * Rows.Count; 1475for (int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 1477rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 1480((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0)); 1481if ((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0) 1483dataGridViewRow = Rows[rowIndex]; // un-shares this row 1953ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 2026rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 2030? Math.Max(preferredWidth, Rows.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex, Rows.SharedRow(rowIndex).GetHeight(rowIndex))) 2031: Math.Max(preferredWidth, Rows.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width); 2040rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 2043DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 2050rowIndex = Rows.GetNextRow( 2060DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 2067rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 2076for (rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 2078rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 2081? Math.Max(preferredWidth, Rows.SharedRow(rowIndex).HeaderCell.GetPreferredWidth(rowIndex, Rows.SharedRow(rowIndex).GetHeight(rowIndex))) 2082: Math.Max(preferredWidth, Rows.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).Width); 2128ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 2147&& rowIndex != Rows.GetFirstRow(DataGridViewElementStates.Visible)) 2154DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 2188rowIndexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible); 2192? Math.Max(preferredWidth, Rows.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp, Rows.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp))) 2193: Math.Max(preferredWidth, Rows.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width); 2202rowIndexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 2205DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndexTmp); 2212rowIndexTmp = Rows.GetNextRow( 2222DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndexTmp); 2229rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible); 2238for (rowIndexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible); 2240rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible)) 2243? Math.Max(preferredWidth, Rows.SharedRow(rowIndexTmp).HeaderCell.GetPreferredWidth(rowIndexTmp, Rows.SharedRow(rowIndexTmp).GetHeight(rowIndexTmp))) 2244: Math.Max(preferredWidth, Rows.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).Width); 2276Debug.Assert(rowIndex >= 0 && rowIndex < Rows.Count); 2294DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 2313Rows[rowIndex].ThicknessInternal = preferredThickness; // un-sharing the resized row 2320Rows[rowIndex].ThicknessInternal = preferredThickness; // un-sharing the resized row 2324Rows[rowIndex].Thickness = preferredThickness; // un-sharing the resized row 2405int rowIndex = Rows.GetNextRow(rowIndexStart - 1, DataGridViewElementStates.Visible); 2413rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 2579Debug.Assert(_ptCurrentCell.Y >= 0 && _ptCurrentCell.Y < Rows.Count); 2773clip.Y = topEdge + Rows.SharedRow(index).GetMinimumHeight(index) - mouseBarOffset - 1; 3132Debug.Assert((AllowUserToAddRowsInternal && Rows.Count == 1) || (!AllowUserToAddRowsInternal && Rows.Count == 0)); 3134if (Rows.Count > 0) 3138int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 3209Debug.Assert(Rows.GetFirstRow(DataGridViewElementStates.Visible) == 0); 3482ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException, Rows.Count); 3491ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException, Rows.Count); 4148if (rowIndex >= Rows.Count) 4154int lastVisibleRowIndex = Rows.GetLastRow(DataGridViewElementStates.Visible); 4172if (rowIndex > -1 && (Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0) 4271int indexTmp = Rows.Count; 4282DataGridViewElementStates rowState = Rows.GetRowState(indexTmp); 4290indexTmp = Rows.GetPreviousRow( 4298rowHeight = Rows.SharedRow(indexTmp).GetHeight(indexTmp); 4308indexTmp = Rows.GetPreviousRow( 4314rowHeight = Rows.SharedRow(indexTmp).GetHeight(indexTmp); 4327int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 4333height += Rows.SharedRow(rowIndex).GetHeight(rowIndex); 4334rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 4346int lastVisibleRowIndex = Rows.GetLastRow(DataGridViewElementStates.Visible); 4347return Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, lastVisibleRowIndex) + 4348Rows.SharedRow(lastVisibleRowIndex).GetHeight(lastVisibleRowIndex); 4536int totalVisibleHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible); 4537int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 4771int nRows = Rows.Count; 4789DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 4797cy += Rows.SharedRow(rowIndex).GetHeight(rowIndex); 4833&& ((Rows.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Frozen) != 0 4834|| (Rows.GetRowState(firstDisplayedScrollingRow) & DataGridViewElementStates.Visible) == 0)) 4841if ((Rows.GetRowState(i) & DataGridViewElementStates.Visible) != 0) 4843cy += Rows.SharedRow(i).GetHeight(i); 4858if ((Rows.GetRowState(i) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.Visible)) == DataGridViewElementStates.Visible) 4860int height = Rows.SharedRow(i).GetHeight(i); 5220Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <= Rows.Count); 5222int previousRowIndex = Rows.GetPreviousRow( 5228&& (Rows.GetRowState(previousRowIndex) & DataGridViewElementStates.Frozen) == 0 5235int nextRowIndex = Rows.GetNextRow( 5241&& (Rows.GetRowState(nextRowIndex) & DataGridViewElementStates.Frozen) != 0 5254int rowIndexTmp = Rows.GetPreviousRow(rowIndexInserted, DataGridViewElementStates.Visible); 5257previousRowFrozen = (Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen; 5261rowIndexTmp = Rows.GetNextRow(rowIndexInserted - 1, DataGridViewElementStates.Visible); 5265nextRowFrozen = (Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen; 5288if (((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) != 0 && !frozenStateChanging) 5289|| ((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0 && frozenStateChanging)) 5292rowIndexTmp = Rows.GetPreviousRow(rowIndex, 5296int dataGridViewRowFirst = Rows.GetFirstRow(DataGridViewElementStates.Visible); 5305Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, true); 5306rowIndexTmp = Rows.GetNextRow(rowIndexTmp, 5314rowIndexTmp = Rows.GetNextRow(rowIndex, 5322rowIndexTmp = Rows.GetNextRow(dataGridViewRowLast, 5338Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Frozen, false); 5339rowIndexTmp = Rows.GetPreviousRow(rowIndexTmp, 5348int rowsCount = Rows.Count; 5351DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 5374int rowsCount = Rows.Count; 5377DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 5449Debug.Assert(Rows.Count > 1); 5452DataGridViewRowCancelEventArgs dgvrce = new(Rows[NewRowIndex]); 5460Debug.Assert(NewRowIndex == Rows.Count - 1); 5461DataGridViewRow dataGridViewRow = Rows[NewRowIndex]; 5462Rows.RemoveAtInternal(NewRowIndex, force: false); 5472NewRowIndex = Rows.Count - 1; 5473Debug.Assert((Rows.GetRowState(NewRowIndex) & DataGridViewElementStates.Visible) != 0); 5476OnDefaultValuesNeeded(new DataGridViewRowEventArgs(Rows[NewRowIndex])); 5803if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5814if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5828if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5875if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5883if (e.Button == MouseButtons.Left && dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5891if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5899if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 5907if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 6323DataGridViewRow dataGridViewRow = Rows.SharedRow(_trackRow); 6335dataGridViewRow = Rows[_trackRow]; // Un-sharing row 6391Debug.Assert(rowIndex < Rows.Count); 6392Debug.Assert((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0); 6393Debug.Assert((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0); 6401int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 6433if ((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) 6435Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true); 6438rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible); 6446rowIndexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6447while (rowIndexTmp != -1 && (Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0) 6449Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false); 6450rowIndexTmp = Rows.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6459rowIndexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 6462while (rowIndexTmp != -1 && (Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0) 6464Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false); 6465rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible); 6470rowIndexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 6474if ((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) 6476Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true); 6479rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 6484while (rowIndexTmp != -1 && (Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0) 6486Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false); 6487rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 6496int firstDisplayedFrozenRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 6499? Rows.GetNextRow( 6509? Rows.GetNextRow( 6521if ((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) 6527Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false); 6528rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible); 6534&& rowIndexTmp < Rows.Count 6540if ((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) 6546Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false); 6547rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible); 6558rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible, DisplayedBandsInfo.OldNumDisplayedScrollingRows - 1); 6561rowIndexTmp = Rows.GetLastRow(DataGridViewElementStates.Visible); 6569if ((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0) 6571Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false); 6574rowIndexTmp = Rows.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible); 6580rowIndexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 6583rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen, DisplayedBandsInfo.OldNumDisplayedFrozenRows - 1); 6586rowIndexTmp = Rows.GetLastRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 6594if ((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0) 6596Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, false); 6599rowIndexTmp = Rows.GetPreviousRow(rowIndexTmp, DataGridViewElementStates.Visible); 6606for (rowIndexTmp = 0; rowIndexTmp < Rows.Count; rowIndexTmp++) 6608DataGridViewElementStates rowStateDbg = Rows.GetRowState(rowIndexTmp); 6620if (!ColumnHeadersVisible && Rows.GetRowCount(DataGridViewElementStates.Visible) == 0) 6867return cellCount + _selectedBandIndexes.Count * Rows.Count; 6904for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 6906DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 6925DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 6942return Rows.Count * Columns.Count; 6951for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 6953DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 6954if (!visibleRequired || (Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0) 6981DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 7058ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 7103Debug.Assert(rowIndex >= -1 && rowIndex < Rows.Count); 7106DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 7148if (Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) == 0) 7155includeColumnHeaders = (Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Selected) == -1); 7287int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected); 7289int nextRowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected); 7300cellContent = Rows.SharedRow(rowIndex) 7318cellContent = Rows.SharedRow(rowIndex) 7337cellContent = Rows.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal( 7357cellContent = Rows.SharedRow(rowIndex).HeaderCell.GetClipboardContentInternal( 7374cellContent = Rows.SharedRow(rowIndex) 7392cellContent = Rows.SharedRow(rowIndex) 7412nextRowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible | DataGridViewElementStates.Selected); 7450int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 7581nextRowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 7595cellContent = Rows.SharedRow(rowIndex) 7613cellContent = Rows.SharedRow(rowIndex) 7632cellContent = Rows.SharedRow(rowIndex) 7654cellContent = Rows.SharedRow(rowIndex) 7673cellContent = Rows.SharedRow(rowIndex) 7691cellContent = Rows.SharedRow(rowIndex) 7711nextRowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 7738selectedVisibleRowExists = Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) != 0; 7744selectedVisibleCellExists = selectedVisibleColumnExists && Rows.GetRowCount(DataGridViewElementStates.Visible) != 0; 7819if ((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0) 7838firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 7839int lastVisibleRowIndex = Rows.GetLastRow(DataGridViewElementStates.Visible); 8016nextRowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 8041cellContent = Rows.SharedRow(rowIndex) 8061cellContent = Rows.SharedRow(rowIndex) 8081cellContent = Rows.SharedRow(rowIndex) 8111cellContent = Rows.SharedRow(rowIndex) 8562int visibleRowsHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible); 8563int frozenVisibleRowsHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 8595&& (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0 8597&& (Rows.GetRowState(_trackRowEdge) & DataGridViewElementStates.Frozen) != 0 8599&& (Rows.GetRowState(hti._row) & DataGridViewElementStates.Frozen) == 0) 8603int firstUnfrozenRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 8633&& ((Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0 8634|| (_trackRowEdge != -1 && (Rows.GetRowState(_trackRowEdge) & DataGridViewElementStates.Frozen) == 0)) 8652if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 8696int firstRowIndex = hti._row >= 0 ? hti._row : Rows.GetFirstRow(DataGridViewElementStates.Visible); 8814if (((_ptAnchorCell.Y != -1 && (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0) 8815|| (_ptCurrentCell.Y != -1 && (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0)) 8837if (VerticalScrollingOffset + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 9010int preferredHeight = Math.Min(minimumHeight + Rows.GetRowsHeight(DataGridViewElementStates.Visible), proposedConstraints.Height); 9023ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 9030Debug.Assert(rowIndex >= 0 && rowIndex < Rows.Count); 9032if ((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) == 0) 9041for (indexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 9055cy += Rows.SharedRow(indexTmp).GetHeight(indexTmp); 9056indexTmp = Rows.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 9076cy += Rows.SharedRow(indexTmp).GetHeight(indexTmp); 9077indexTmp = Rows.GetNextRow(indexTmp, DataGridViewElementStates.Visible); 9084int displayHeight = cutOverflow && cy + Rows.SharedRow(indexTmp).GetHeight(indexTmp) > data.Bottom 9086: Rows.SharedRow(indexTmp).GetHeight(indexTmp); 9119int indexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 9122rowHeight = Rows.SharedRow(indexTmp).GetHeight(indexTmp); 9130indexTmp = Rows.GetNextRow(indexTmp, 9138Debug.Assert((Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0 9139&& (Rows.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0); 9143rowHeight = Rows.SharedRow(indexTmp).GetHeight(indexTmp); 9151indexTmp = Rows.GetNextRow(indexTmp, 9195Debug.Assert(index >= 0 && index < Rows.Count); 9196Debug.Assert((Rows.GetRowState(index) & DataGridViewElementStates.Visible) != 0); 9200int indexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 9208y += Rows.SharedRow(indexTmp).GetHeight(indexTmp); 9209indexTmp = Rows.GetNextRow(indexTmp, 9231indexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 9237Debug.Assert((Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0 9238&& (Rows.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0); 9247y += Rows.SharedRow(indexTmp).GetHeight(indexTmp); 9248indexTmp = Rows.GetNextRow(indexTmp, DataGridViewElementStates.Visible); 9255indexTmp = Rows.GetPreviousRow(DisplayedBandsInfo.FirstDisplayedScrollingRow, 9260y -= Rows.SharedRow(indexTmp).GetHeight(indexTmp); 9266indexTmp = Rows.GetPreviousRow(indexTmp, 9424int rowHeight = Rows.SharedRow(hti._row).GetHeight(hti._row); 9441indexTmp = Rows.GetPreviousRow(hti._row, DataGridViewElementStates.Visible); 9566int rowHeight = Rows.SharedRow(hti._row).GetHeight(hti._row); 9580indexTmp = Rows.GetPreviousRow(hti._row, 9605int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 9694dataGridViewCell = Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; // un-share the edited cell 9782ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 9849ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 9856Debug.Assert(rowIndex >= 0 && rowIndex < Rows.Count); 9870Rows.InvalidateCachedRowsHeights(); 9885Debug.Assert(lo < Rows.Count); 9886Debug.Assert(hi < Rows.Count); 9888if (Rows.GetRowCount(DataGridViewElementStates.Visible) == 0) 9899if ((Rows.GetRowState(lo) & DataGridViewElementStates.Visible) == 0) 9901lo = Rows.GetNextRow(lo, DataGridViewElementStates.Visible); 9911if ((Rows.GetRowState(hi) & DataGridViewElementStates.Visible) == 0) 9913hi = Rows.GetPreviousRow(hi, DataGridViewElementStates.Visible); 9924if ((Rows.GetRowState(lo) & DataGridViewElementStates.Frozen) != 0) 9936&& Rows.GetRowCount( 9961if ((Rows.GetRowState(hi) & DataGridViewElementStates.Frozen) == DataGridViewElementStates.Frozen) 9973else if (Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0) 9988if ((Rows.GetRowState(i) & DataGridViewElementStates.Visible) == 0) 10041return columnIndex >= Columns.Count || rowIndex >= Rows.Count || columnIndex == -1 || rowIndex == -1; 10046return rowIndex >= Rows.Count || rowIndex == -1; 10157int totalVisibleRowCount = Rows.GetRowCount(DataGridViewElementStates.Visible); 10162int totalVisibleHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible); 10163int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 10183if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10184&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10212&& DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10213&& DisplayedBandsInfo.NumTotallyDisplayedScrollingRows != totalVisibleRowCount - Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10269if (DisplayedBandsInfo.NumTotallyDisplayedFrozenRows == Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) 10388&& (includeNewRow || !AllowUserToAddRowsInternal || firstDisplayedCellAddress.Y != Rows.Count - 1)) 10589Debug.Assert(rowIndex == Rows.Count - 1); 10593DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 10596DataGridViewRow dataGridViewRowDebug = Rows.SharedRow(rowIndex); 10607DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 10623DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 10637int rowHeight = Rows.SharedRow(rowIndex).GetHeight(rowIndex); 10638Rows.SharedRow(rowIndex).CachedThickness = rowHeight; 10655if (Rows.GetRowCount(DataGridViewElementStates.Visible) > 1) 10785if (Rows.Count > 0) 10797_ = Rows[NewRowIndex]; 10804for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 10806DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 10826for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 10828DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 10866if (Rows.Count > 0 && dataGridViewColumn.CellType is null) 10933if (Rows.Count > 0) 10942_ = Rows[NewRowIndex]; 10956for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 10958DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 10977for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 10979DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 11004CorrectRowFrozenState(dataGridViewRow, rowState, Rows.Count); 11073CorrectRowFrozenStates(dataGridViewRows, rowIndexInserted: Rows.Count); 11329for (int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 11331rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 11334int rowHeight = Rows.SharedRow(rowIndex).GetHeight(rowIndex); 11335Rows.SharedRow(rowIndex).CachedThickness = rowHeight; 11509ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(e.RowIndex, Rows.Count, "e.RowIndex"); 11550_ = Rows[e.RowIndex]; 11583rowDisplayed = (Rows.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0; 11634_ = Rows[e.RowIndex]; 11659_ = Rows[e.RowIndex]; 11704_ = Rows[e.RowIndex]; 11732Debug.Assert(rowIndex < Rows.Count && columnIndex < Columns.Count); 11733dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 11820Debug.Assert(rowIndex < Rows.Count && columnIndex < Columns.Count); 11821dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 11851_ = Rows[e.RowIndex]; 11872_ = Rows[e.RowIndex]; 11936_ = Rows[e.RowIndex]; 12103if (hti._row >= Rows.Count) 12105int lastVisibleRowIndex = Rows.GetLastRow(DataGridViewElementStates.Visible); 12129&& IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row) 12284&& (Columns[hti._col].Selected || IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row)) 12395if (isControlDown && ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)) 12407&& _ptAnchorCell.Y > -1 && (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 12463else if ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0) 12466((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)); 12489&& (((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0) 12490|| IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row)) 12617_ = Rows[e.RowIndex]; 12640_ = Rows[e.RowIndex]; 12660_ = Rows[e.RowIndex]; 12718_ = Rows[e.RowIndex]; 13056Debug.Assert(rowIndex < Rows.Count && columnIndex < Columns.Count); 13057dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 13102Debug.Assert(rowIndex < Rows.Count && columnIndex < Columns.Count); 13103dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 13196Rows.ClearInternal(recreateNewRow: false); 13213int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Displayed); 13216_lstRows.Add(Rows[rowIndex]); 13220rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Displayed); 13277if (Columns.Count != 0 && Rows.Count == 0) 13696int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 14443&& (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.ReadOnly) == 0 14664dataGridViewRow = Rows[index]; 14785Debug.Assert((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0); 14806&& (Rows.GetRowState(rowIndex) & DataGridViewElementStates.ReadOnly) == 0 14850Debug.Assert(!Rows[dataGridViewCell.RowIndex].ReadOnly); 14981int totalVisibleHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible); 14982int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 15317forceCurrentCellSelection: Rows.GetRowCount(DataGridViewElementStates.Visible) == 1); 15420if (Rows.Count > 0) 15432_ = Rows[NewRowIndex]; 15439for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 15441DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 15460for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 15462DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 15683_ = Rows[_ptCurrentCell.Y]; 15742_ = Rows[_ptCurrentCell.Y]; 15776_ = Rows[_ptCurrentCell.Y]; 15897if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15918if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15929if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 15986if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 16036if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 16048if (rowIndex < Rows.Count) 16058Debug.Assert(Rows[rowIndex].Resizable == DataGridViewTriState.True); 16160&& _ptMouseEnteredCell.Y >= -1 && _ptMouseEnteredCell.Y < Rows.Count) 16382if (dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count) 16581int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 16583&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16589Debug.Assert(totalVisibleFrozenHeight == Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 16594if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16861&& !Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X].ReadOnly) // Un-shares the row 17104Rows.ClearInternal(recreateNewRow: false); 17110for (int rowIndex = 0; rowIndex < Rows.Count; rowIndex++) 17112DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 17237Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted < Rows.Count); 17239if (rowIndexDeleted >= 0 && rowIndexDeleted < Rows.Count) 17241foreach (DataGridViewCell cell in Rows[rowIndexDeleted].Cells) 17256int rowIndexPrevious = Rows.GetPreviousRow(rowIndexDeleted, DataGridViewElementStates.Visible); 17257int rowIndexNext = Rows.GetNextRow(rowIndexDeleted, DataGridViewElementStates.Visible); 17261Debug.Assert(NewRowIndex == Rows.Count - 1); 17262newY = rowIndexNext > -1 && rowIndexNext < Rows.Count - 1 ? rowIndexNext - 1 : rowIndexPrevious; 17535&& Rows.Count == 0 17560DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 17614if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex < Rows.Count) 17659if (rowIndex < Rows.Count && columnIndex < Columns.Count) 17668DataGridViewRowEventArgs dgvre = new(Rows[NewRowIndex]); 17700if (calledAddNewOnTheDataConnection && rowIndex > Rows.Count - 1) 17703rowIndex = Math.Min(rowIndex, Rows.Count - 1); 17725Debug.Assert(rowIndex < Rows.Count && columnIndex < Columns.Count); 17726dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 17780DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 17868rowDisplayed = (Rows.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0; 17886&& rowIndex == Rows.GetFirstRow(DataGridViewElementStates.Visible))) 17940if (isControlDown && ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)) 18008if (hti._row >= Rows.Count) 18010int lastVisibleRowIndex = Rows.GetLastRow(DataGridViewElementStates.Visible); 18035else if ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Visible) == 0) 18048&& (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 18113else if ((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) == 0) 18116((Rows.GetRowState(hti._row) & DataGridViewElementStates.Selected) != 0)); 18320if (rowIndex < Rows.Count && columnIndex < Columns.Count) 18332Debug.Assert(rowIndex < Rows.Count && columnIndex < Columns.Count); 18333dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 18420SelectRowRange(Rows.GetNextRow(_trackRowEdge, DataGridViewElementStates.Visible), 18426SelectRowRange(Rows.GetNextRow(hti._row, DataGridViewElementStates.Visible), 18432SelectRowRange(Rows.GetNextRow(_trackRow, DataGridViewElementStates.Visible), 18439Rows.GetPreviousRow(_trackRowEdge, DataGridViewElementStates.Visible), 18446Rows.GetPreviousRow(hti._row, DataGridViewElementStates.Visible), 18453Rows.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible), 18459SelectRowRange(Rows.GetNextRow(_trackRow, DataGridViewElementStates.Visible), 18462Rows.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible), 18469Rows.GetPreviousRow(_trackRow, DataGridViewElementStates.Visible), 18471SelectRowRange(Rows.GetNextRow(_trackRow, DataGridViewElementStates.Visible), 18562newState = Rows.GetRowState(rowIndex); 18605Rows.SetRowState(rowIndex, DataGridViewElementStates.Displayed, false); 18616bool rowDisplayed = (Rows.GetRowState(rowIndex) & DataGridViewElementStates.Displayed) != 0; 18642dataGridViewRow = Rows[rowIndex]; 18656if (rowVisible && Rows.GetRowCount(DataGridViewElementStates.Visible) > 1) 18732if (dataGridViewCell is not null && rowIndex < Rows.Count && columnIndex < Columns.Count) 18734dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 18779Debug.Assert(rowIndex < Rows.Count && columnIndex < Columns.Count); 18780dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 18858int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 18864rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 19083int rowIndex = Rows.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible); 19132rowIndexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 19136if ((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0) 19143Debug.Assert((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0); 19144rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 19152Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true); 19153rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 19163Debug.Assert((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Visible) != 0); 19169if ((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0) 19176Debug.Assert((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) != 0); 19177rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible); 19185Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, true); 19186rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible); 19207int visibleRowsHeight = Rows.GetRowsHeight(DataGridViewElementStates.Displayed); 19496if (Columns.Count > 0 || Rows.Count > 0) 19563indexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 19577int rowHeight = Rows.SharedRow(indexTmp).GetHeight(indexTmp); 19578Rows.SharedRow(indexTmp).CachedThickness = rowHeight; 19582rowBounds.Height = Rows.SharedRow(indexTmp).GetHeight(indexTmp); 19590indexTmpNext = Rows.GetNextRow(indexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 19594dataGridViewRow = Rows.SharedRow(indexTmp); 19599Rows.GetRowState(indexTmp), 19618Debug.Assert((Rows.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0); 19619Debug.Assert((Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0); 19633int rowHeight = Rows.SharedRow(indexTmp).GetHeight(indexTmp); 19634Rows.SharedRow(indexTmp).CachedThickness = rowHeight; 19638rowBounds.Height = Rows.SharedRow(indexTmp).GetHeight(indexTmp); 19646indexTmpNext = Rows.GetNextRow(indexTmp, DataGridViewElementStates.Visible); 19650dataGridViewRow = Rows.SharedRow(indexTmp); 19655Rows.GetRowState(indexTmp), 19769DataGridViewRow newRow = Rows.SharedRow(NewRowIndex); 19775newRow = Rows[NewRowIndex]; // un-share the 'new row'. 19821Columns[_ptCurrentCell.X].Width, Rows.SharedRow(_ptCurrentCell.Y).GetHeight(_ptCurrentCell.Y)); 19835if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0) 19837int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 19946if (rowIndex == NewRowIndex || rowIndex >= Rows.Count) 19952DataGridViewRowCancelEventArgs dgvrce = new(Rows[rowIndex]); 19956DataGridViewRow dataGridViewRow = Rows[rowIndex]; 19959int dataGridRowsCount = Rows.Count; 19961int dataGridViewRowsCount = Rows.Count; // the number of rows in the dataGridView row collection not counting the AddNewRow 20009if (dataGridRowsCount != Rows.Count) 20022Rows.RemoveAtInternal(rowIndex, force: false); 20149int lastVisibleRowIndex = Rows.GetLastRow(DataGridViewElementStates.Visible); 20159nextVisibleRowIndex = Rows.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible); 20698if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 20735if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 20787if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 20847if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 20945if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21072int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 21073int lastVisibleRowIndex = Rows.GetLastRow(DataGridViewElementStates.Visible); 21155&& (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21176&& (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21193&& (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21547int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 21629&& (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21650&& (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21667&& (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 22073int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 22930nextScreenVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 22941if ((Rows.GetRowState(nextScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0) 22945int firstDisplayedScrollingRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 22953jumpRows = Rows.GetRowCount(DataGridViewElementStates.Visible, 22974nextScreenVisibleRowIndexTmp = Rows.GetNextRow(nextScreenVisibleRowIndex, DataGridViewElementStates.Visible); 23112if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 23139if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 23191previousScreenVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 23202int jumpRows = (Rows.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0 23215previousScreenVisibleRowIndexTmp = Rows.GetPreviousRow(previousScreenVisibleRowIndex, DataGridViewElementStates.Visible); 23224if ((Rows.GetRowState(previousScreenVisibleRowIndex) & DataGridViewElementStates.Frozen) != 0) 23227int firstDisplayedScrollingRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 23237previousScreenVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 23370if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 23397if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 23452int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 24314if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) == 0) 24532int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 24541previousVisibleRowIndex = Rows.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible); 24964if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 24996if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25037if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25085if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25167if ((Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25333Debug.Assert(NewRowIndex == Rows.Count - 1); 25334Rows.RemoveAtInternal(NewRowIndex, force: false); 25363dataGridViewCurrentCell = Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; 25388dataGridViewCurrentCell = Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; 25407Rows.ClearInternal(recreateNewRow: false); 25528Rows.ClearInternal(recreateNewRow: true); 25552Rows.AddInternal(RowTemplateClone); 25556Rows.AddCopiesInternal(0, rowsCount - 1); 25605foreach (DataGridViewRow row in Rows) 25923for (int rowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 25925rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 25927DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 25946DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 25955Debug.Assert(rowIndex < Rows.Count); 25957DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 26202Debug.Assert(rowIndex >= 0 && rowIndex < Rows.Count); 26203Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= -1 && DisplayedBandsInfo.FirstDisplayedScrollingRow < Rows.Count); 26205Debug.Assert((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0); 26262Debug.Assert(rowIndex >= 0 && rowIndex < Rows.Count); 26264if ((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0) 26277rowsToScroll = Rows.GetRowCount(DataGridViewElementStates.Visible, rowIndex, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26284int yRowBottomEdge = GetRowYFromIndex(rowIndex) + Rows.SharedRow(rowIndex).GetHeight(rowIndex); 26287yRowBottomEdge -= Rows.SharedRow(firstDisplayedScrollingRow).GetHeight(firstDisplayedScrollingRow); 26291firstDisplayedScrollingRow = Rows.GetNextRow(firstDisplayedScrollingRow, DataGridViewElementStates.Visible); 26319Debug.Assert(DisplayedBandsInfo.FirstDisplayedScrollingRow >= Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 26327int frozenRowsThickness = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 26350if (EditingControl is not null && (Rows.GetRowState(_ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0) 26378int firstVisibleScrollingRow = Rows.GetFirstRow(DataGridViewElementStates.Visible, DataGridViewElementStates.Frozen); 26380int newScrolledOffRowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, firstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26399deltaY -= Rows.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow); 26400newFirstVisibleScrollingRow = Rows.GetNextRow( 26417deltaY = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26418rows = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26431newFirstVisibleScrollingRow = Rows.GetPreviousRow( 26437deltaY += Rows.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow); 26465deltaY = Rows.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow); 26468newFirstVisibleScrollingRow = Rows.GetNextRow(newFirstVisibleScrollingRow, DataGridViewElementStates.Visible); 26475deltaY += Rows.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow); 26481newFirstVisibleScrollingRow = Rows.GetPreviousRow( 26486deltaY = -Rows.SharedRow(newFirstVisibleScrollingRow).GetHeight(newFirstVisibleScrollingRow); 26489int scrollingRowTmp = Rows.GetPreviousRow(newFirstVisibleScrollingRow, 26494deltaY -= Rows.SharedRow(scrollingRowTmp).GetHeight(scrollingRowTmp); 26516scrollHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26517rowCount = Rows.GetRowCount(DataGridViewElementStates.Visible, oldFirstVisibleScrollingRow, DisplayedBandsInfo.FirstDisplayedScrollingRow); 26522scrollHeight = -Rows.GetRowsHeight(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 26523rowCount = -Rows.GetRowCount(DataGridViewElementStates.Visible, DisplayedBandsInfo.FirstDisplayedScrollingRow, oldFirstVisibleScrollingRow); 26553int rowIndex = 0, maxRowIndex = Rows.Count; 26557_ = Rows[rowIndex]; 26574int rowIndex = 0, maxRowIndex = Rows.Count; 26577DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 26617int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 26658if (index >= Rows.Count) 26660index -= Rows.Count; 26666return Rows.SharedRow(index).Cells[columnIndex]; 26693return Rows.SharedRow(rowIndex).Cells[index]; 26745ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 26763&& !IsSharedCellVisible(Rows.SharedRow(rowIndex).Cells[columnIndex], rowIndex)) 26781Debug.Assert(rowIndex >= 0 && columnIndex < Columns.Count && rowIndex < Rows.Count); 26825currentCell = Rows.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX]; 26829currentCell = Rows[oldCurrentCellY].Cells[oldCurrentCellX]; 26909if (rowIndex >= Rows.Count) 26940currentCell = Rows[rowIndex].Cells[columnIndex]; 26948if (oldCurrentCellX < Columns.Count && oldCurrentCellY < Rows.Count) 26953if (oldCurrentCellY != _ptCurrentCell.Y && RowHeadersVisible && oldCurrentCellY < Rows.Count) 27038currentCell = Rows.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX]; 27042currentCell = Rows[oldCurrentCellY].Cells[oldCurrentCellX]; 27112if (oldCurrentCellX < Columns.Count && oldCurrentCellY < Rows.Count) 27117if (RowHeadersVisible && oldCurrentCellY < Rows.Count) 27335if ((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0) 27468Debug.Assert(columnIndex >= 0 && rowIndex >= 0 && columnIndex < Columns.Count && rowIndex < Rows.Count); 27471DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 27472DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 27475DataGridViewCell dataGridViewCell = Rows[rowIndex].Cells[columnIndex]; 27499dataGridViewCellTmp = Rows[row].Cells[columnIndex]; 27504for (int row = rowIndex + 1; row < Rows.Count; row++) 27506dataGridViewCellTmp = Rows[row].Cells[columnIndex]; 27514Rows.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false); 27517dataGridViewCellTmp = Rows[rowIndex].Cells[column]; 27524dataGridViewCellTmp = Rows[rowIndex].Cells[column]; 27577Debug.Assert(rowIndex >= 0 && rowIndex < Rows.Count); 27579DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 27597Rows.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, true); 27602Rows.SetRowState(rowIndex, DataGridViewElementStates.ReadOnly, false); 27618ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 27621DataGridViewRow dataGridViewRow = Rows.SharedRow(rowIndex); 27622DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 27625DataGridViewCell dataGridViewCell = Rows[rowIndex].Cells[columnIndex]; 27648if (Rows.Count > BulkPaintThreshold) 27662dataGridViewCellTmp = Rows[row].Cells[columnIndex]; 27667for (int row = rowIndex + 1; row < Rows.Count; row++) 27669dataGridViewCellTmp = Rows[row].Cells[columnIndex]; 27694Rows.SetRowState(rowIndex, DataGridViewElementStates.Selected, false); 27697dataGridViewCellTmp = Rows[rowIndex].Cells[column]; 27704dataGridViewCellTmp = Rows[rowIndex].Cells[column]; 27732if (!Columns[columnIndex].Visible || (Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) == 0) 27867if ((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Selected) == 0) 27870((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0)); 27876if ((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0) 27879((Rows.GetRowState(rowIndex) & DataGridViewElementStates.Selected) != 0)); 28064ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28069DataGridViewElementStates rowState = Rows.GetRowState(rowIndex); 28080Rows.SetRowState(rowIndex, DataGridViewElementStates.Selected, true); 28087Rows.SetRowState(rowIndex, DataGridViewElementStates.Selected, false); 28238int visibleFrozenRows = Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 28241int rowVFIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 28243Rows.SetRowState(rowVFIndex, DataGridViewElementStates.Frozen, false); 28244Debug.Assert(Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) == 0); 28277Rows.Sort(comparer!, direction == ListSortDirection.Ascending); 28305int rowVIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 28309rowVIndex = Rows.GetNextRow(rowVIndex, DataGridViewElementStates.Visible); 28314Rows.SetRowState(rowVIndex, DataGridViewElementStates.Frozen, true); 28422int totalVisibleFrozenHeight = Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 28429if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 28453int firstDisplayedScrollingRowHeight = Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow); 28489int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 28510nextVisibleRowIndex = Rows.GetNextRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible); 28650int firstVisibleRowIndex = Rows.GetFirstRow(DataGridViewElementStates.Visible); 28671previousVisibleRowIndex = Rows.GetPreviousRow(_ptCurrentCell.Y, DataGridViewElementStates.Visible); 28679int lastVisibleRowIndex = Rows.GetLastRow(DataGridViewElementStates.Visible); 28860ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28874ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28929ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28940ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexStart, Rows.Count); 28943ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexEnd, Rows.Count); 28973ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28975Rows.InvalidateCachedRowsHeights(); 28977bool rowVisible = (rowIndex >= 0 && (Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0); 29016rowIndex = Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible); 29112rowIndexTmp = Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 29116if (((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed) 29118Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed); 29121rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 29135if (((Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Displayed) == 0) == displayed) 29137Rows.SetRowState(rowIndexTmp, DataGridViewElementStates.Displayed, displayed); 29140rowIndexTmp = Rows.GetNextRow(rowIndexTmp, DataGridViewElementStates.Visible); 29167&& _ptMouseEnteredCell.Y < Rows.Count) 29194&& _ptMouseEnteredCell.Y < Rows.Count) 29295Rows.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29305Rows.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29320Rows.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29330Rows.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29349Rows.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29372Rows.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29411Rows.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29435Rows.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29456Rows.GetPreviousRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29492Rows.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29548Rows.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29561Rows.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29595Rows.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29611Rows.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29638Rows.GetNextRow(anchorRowIndex, DataGridViewElementStates.Visible), 29692Rows.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29708Rows.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29742Rows.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29758Rows.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29785Rows.GetNextRow(oldEdgeRowIndex, DataGridViewElementStates.Visible), 29806Rows.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29815Rows.GetPreviousRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29832Rows.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29841Rows.GetNextRow(newEdgeRowIndex, DataGridViewElementStates.Visible), 29977dataGridViewCell = Rows.SharedRow(hti._row).Cells[hti._col]; 29985dataGridViewCell = Rows.SharedRow(hti._row).HeaderCell;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
208return _ownerDataGridView.Rows.Count == 0 ? null : Parent.GetChild(1);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (2)
803DataGridView.Rows.InvalidateCachedRowCount(elementState); 804DataGridView.Rows.InvalidateCachedRowsHeight(elementState);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
483rowIndex < DataGridView.Rows.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (3)
82DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 125DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 170DataGridViewRowCollection dataGridViewRows = DataGridView.Rows;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (28)
163Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 265Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 313if (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); 444Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 514Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 546Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 751Debug.Assert(DataGridView.Rows.GetRowState(RowIndex) == DataGridView.Rows.SharedRow(RowIndex).State); 972DataGridViewElementStates rowState = DataGridView.Rows.GetRowState(rowIndex); 998isLastVisibleRow: rowIndex == DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible)); 1304ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1728ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1798ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1804if (DataGridView.Rows.SharedRow(rowIndex) != OwningRow) 1809DataGridViewElementStates rowEffectiveState = DataGridView.Rows.GetRowState(rowIndex); 1865Debug.Assert(state == stateDebug || DataGridView.Rows.SharedRow(rowIndex).Index == -1); 1878ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1912if (DataGridView.Rows.SharedRow(rowIndex).HasDefaultCellStyle) 1914rowStyle = DataGridView.Rows.SharedRow(rowIndex).DefaultCellStyle; 2416ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, dataGridView.Rows.Count); 3045if (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; 466if (_owner.OwningRow.Index == _owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible)) 474int previousVisibleRow = _owner.DataGridView.Rows.GetPreviousRow(_owner.OwningRow.Index, DataGridViewElementStates.Visible); 475return _owner.DataGridView.Rows[previousVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject; 479if (_owner.OwningRow.Index == _owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible)) 485int nextVisibleRow = _owner.DataGridView.Rows.GetNextRow(_owner.OwningRow.Index, DataGridViewElementStates.Visible); 486return _owner.DataGridView.Rows[nextVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject; 738? _owner.DataGridView.Rows.GetVisibleIndex(_owner.OwningRow)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellPaintingEventArgs.cs (3)
80if (RowIndex < -1 || RowIndex >= _dataGridView.Rows.Count) 109if (RowIndex < -1 || RowIndex >= _dataGridView.Rows.Count) 144if (RowIndex < -1 || RowIndex >= _dataGridView.Rows.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
834rowIndex < DataGridView.Rows.Count) 972rowIndex < 0 || rowIndex >= DataGridView.Rows.Count) 977int visibleRowIndex = DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (5)
86DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 129DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 173DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 213DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 267DataGridViewRowCollection dataGridViewRows = DataGridView.Rows;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (8)
951for (rowIndex = dataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible); 953rowIndex = dataGridView.Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible)) 955dataGridViewRow = dataGridView.Rows.SharedRow(rowIndex); 976rowIndex = dataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 979dataGridViewRow = dataGridView.Rows.SharedRow(rowIndex); 995rowIndex = dataGridView.Rows.GetNextRow(rowIndex, 1004dataGridViewRow = dataGridView.Rows.SharedRow(rowIndex); 1020rowIndex = dataGridView.Rows.GetNextRow(rowIndex, DataGridViewElementStates.Visible);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
1067foreach (DataGridViewRow row in DataGridView.Rows)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1767DataGridViewElementStates rowState = DataGridView.Rows.GetRowState(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (11)
52DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 115DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 161DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 204DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 248DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 292DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 333DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 396DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 439DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 480DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 522DataGridViewRowCollection dataGridViewRows = DataGridView.Rows;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (4)
234(DataGridView is not null && (rowIndex < 0 || rowIndex >= DataGridView.Rows.Count))) 239if (DataGridView is not null && DataGridView.Rows.SharedRow(rowIndex) != OwningRow) 363ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 365if (DataGridView.Rows.SharedRow(rowIndex) != OwningRow)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
93DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 167DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 207DataGridViewRowCollection dataGridViewRows = DataGridView.Rows;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
733rowIndex < DataGridView.Rows.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (7)
51DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 120DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 162DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 212DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 257DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 300DataGridViewRowCollection dataGridViewRows = DataGridView.Rows; 342DataGridViewRowCollection dataGridViewRows = DataGridView.Rows;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (10)
1215ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1242ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1291ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1372ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1375if (DataGridView is null || DataGridView.Rows.SharedRow(rowIndex).Index != -1) 1386return DataGridView.Rows.GetRowState(rowIndex); 1398DataGridView.Rows.InvalidateCachedRowCount(elementState); 1399DataGridView.Rows.InvalidateCachedRowsHeight(elementState); 1426DataGridViewRow sharedRow = dataGridView.Rows.SharedRow(rowIndex); 1468sharedRow = 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 341if (_owningDataGridViewRow.Index != _owningDataGridViewRow.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible)) 355if (_owningDataGridViewRow.Index != _owningDataGridViewRow.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible))
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
100ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 297ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 567ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (6)
155if (Owner.OwningRow.Index == Owner.DataGridView.Rows.GetLastRow(DataGridViewElementStates.Visible)) 160int nextVisibleRow = Owner.DataGridView.Rows.GetNextRow(Owner.OwningRow.Index, DataGridViewElementStates.Visible); 161int actualDisplayIndex = Owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, nextVisibleRow); 174if (Owner.OwningRow.Index == Owner.DataGridView.Rows.GetFirstRow(DataGridViewElementStates.Visible)) 187int previousVisibleRow = Owner.DataGridView.Rows.GetPreviousRow(Owner.OwningRow.Index, DataGridViewElementStates.Visible); 188int actualDisplayIndex = Owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, previousVisibleRow);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPostPaintEventArgs.cs (10)
64if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 69_dataGridView.Rows.SharedRow(RowIndex).DrawFocus( 81if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 86_dataGridView.Rows.SharedRow(RowIndex).PaintCells( 99if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 110_dataGridView.Rows.SharedRow(RowIndex).PaintCells( 123if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 128_dataGridView.Rows.SharedRow(RowIndex).PaintCells( 152if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 157_dataGridView.Rows.SharedRow(RowIndex).PaintHeader(
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPrePaintEventArgs.cs (10)
81if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 86_dataGridView.Rows.SharedRow(RowIndex).DrawFocus( 98if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 103_dataGridView.Rows.SharedRow(RowIndex).PaintCells( 116if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 127_dataGridView.Rows.SharedRow(RowIndex).PaintCells( 140if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 145_dataGridView.Rows.SharedRow(RowIndex).PaintCells( 169if (RowIndex < 0 || RowIndex >= _dataGridView.Rows.Count) 174_dataGridView.Rows.SharedRow(RowIndex).PaintHeader(
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
63DataGridViewRowCollection dataGridViewRows = DataGridView.Rows;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (3)
209Owner.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible) > 0) 213DataGridViewRow 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; 320Debug.Assert(e.Cell == _sampleDataGridView.Rows[0].Cells[0], "the sample data grid view has only one cell"); 332dataGridView.Rows[0].Height = dataGridView.Height;
System.Windows.Forms.Tests (1629)
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (1)
34DataGridViewCell cell = dataGridView.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (210)
209DataGridViewCell cell = dataGridView.Rows[0].Cells[0]; 228dataGridView.Rows.Add(); 230for (int i = 0; i < dataGridView.Rows.Count; i++) 232for (int j = 0; j < dataGridView.Rows[i].Cells.Count; j++) 234AccessibleObject expected = dataGridView.Rows[i].Cells[j].AccessibilityObject; 329dataGridView.Rows.Add(); // 1 330VARIANT isOffscreen = dataGridView.Rows[1].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId); 333dataGridView.Rows.Add(); // 2 334dataGridView.Rows.Add(); // 3 335dataGridView.Rows.Add(); // 4 336isOffscreen = dataGridView.Rows[4].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId); 385dataGridView.Rows[0].Cells[0].ReadOnly = isReadOnly; 389foreach (DataGridViewRow row in dataGridView.Rows) 410dataGridView.Rows[0].ReadOnly = isReadOnly; 414foreach (DataGridViewRow row in dataGridView.Rows) 439foreach (DataGridViewRow row in dataGridView.Rows) 582dataGridView.Rows.Add("Test"); 583dataGridView.Rows[0].Visible = false; 635dataGridView.Rows.Add("Test 1"); 636dataGridView.Rows.Add("Test 2"); 638dataGridView.Rows[0].Visible = false; 654dataGridView.Rows.Add("Test 1"); 655dataGridView.Rows.Add("Test 2"); 657dataGridView.Rows[1].Visible = false; 673dataGridView.Rows.Add("Test 1"); 674dataGridView.Rows.Add("Test 2"); 676dataGridView.Rows[0].Visible = false; 677dataGridView.Rows[1].Visible = false; 692dataGridView.Rows.Add("Test 1"); 693dataGridView.Rows.Add("Test 2"); 695dataGridView.Rows[0].Visible = false; 710dataGridView.Rows.Add("Test 1"); 711dataGridView.Rows.Add("Test 2"); 713dataGridView.Rows[1].Visible = false; 728dataGridView.Rows.Add("Test 1"); 729dataGridView.Rows.Add("Test 2"); 731dataGridView.Rows[0].Visible = false; 732dataGridView.Rows[1].Visible = false; 748dataGridView.Rows.Add("Test 1"); 749dataGridView.Rows.Add("Test 2"); 751dataGridView.Rows[0].Visible = false; 754Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 769dataGridView.Rows.Add("Test 1"); 770dataGridView.Rows.Add("Test 2"); 772dataGridView.Rows[1].Visible = false; 775Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 790dataGridView.Rows.Add("Test 1"); 791dataGridView.Rows.Add("Test 2"); 793dataGridView.Rows[0].Visible = false; 794dataGridView.Rows[1].Visible = false; 811dataGridView.Rows.Add("Test 1"); 812dataGridView.Rows.Add("Test 2"); 814dataGridView.Rows[0].Visible = false; 820Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1)); 834dataGridView.Rows.Add("Test 1"); 835dataGridView.Rows.Add("Test 2"); 837dataGridView.Rows[1].Visible = false; 843Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1)); 857dataGridView.Rows.Add("Test 1"); 858dataGridView.Rows.Add("Test 2"); 860dataGridView.Rows[0].Visible = false; 861dataGridView.Rows[1].Visible = false; 881dataGridView.Rows.Add("Test 1"); 882dataGridView.Rows.Add("Test 2"); 884dataGridView.Rows[0].Visible = false; 886Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 887Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 901dataGridView.Rows.Add("Test 1"); 902dataGridView.Rows.Add("Test 2"); 904dataGridView.Rows[1].Visible = false; 906Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 907Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 921dataGridView.Rows.Add("Test 1"); 922dataGridView.Rows.Add("Test 2"); 924dataGridView.Rows[0].Visible = false; 925dataGridView.Rows[1].Visible = false; 941dataGridView.Rows.Add("Test 1"); 942dataGridView.Rows.Add("Test 2"); 945dataGridView.Rows[0].Visible = false; 948Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 961dataGridView.Rows.Add("Test 1"); 962dataGridView.Rows.Add("Test 2"); 965dataGridView.Rows[1].Visible = false; 968Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 981dataGridView.Rows.Add("Test 1"); 982dataGridView.Rows.Add("Test 2"); 985dataGridView.Rows[0].Visible = false; 986dataGridView.Rows[1].Visible = false; 1003dataGridView.Rows.Add("Test 1"); 1004dataGridView.Rows.Add("Test 2"); 1006dataGridView.Rows[0].Visible = false; 1008Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1009Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1023dataGridView.Rows.Add("Test 1"); 1024dataGridView.Rows.Add("Test 2"); 1026dataGridView.Rows[1].Visible = false; 1028Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1029Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1043dataGridView.Rows.Add("Test 1"); 1044dataGridView.Rows.Add("Test 2"); 1046dataGridView.Rows[0].Visible = false; 1047dataGridView.Rows[1].Visible = false; 1063dataGridView.Rows.Add("Test 1"); 1064dataGridView.Rows.Add("Test 2"); 1067dataGridView.Rows[0].Visible = false; 1070Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1083dataGridView.Rows.Add("Test 1"); 1084dataGridView.Rows.Add("Test 2"); 1087dataGridView.Rows[1].Visible = false; 1090Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1103dataGridView.Rows.Add("Test 1"); 1104dataGridView.Rows.Add("Test 2"); 1107dataGridView.Rows[0].Visible = false; 1108dataGridView.Rows[1].Visible = false; 1210dataGridView.Rows.Add("Test 1"); 1211dataGridView.Rows.Add("Test 2"); 1212dataGridView.Rows.Add("Test 3"); 1218Assert.Equal(dataGridView.Rows[0].HeaderCell.AccessibilityObject, rowHeaders[0]); 1219Assert.Equal(dataGridView.Rows[1].HeaderCell.AccessibilityObject, rowHeaders[1]); 1220Assert.Equal(dataGridView.Rows[2].HeaderCell.AccessibilityObject, rowHeaders[2]); 1229dataGridView.Rows.Add("Test 1"); 1230dataGridView.Rows.Add("Test 2"); 1231dataGridView.Rows.Add("Test 3"); 1232dataGridView.Rows[0].Visible = false; 1238Assert.Equal(dataGridView.Rows[1].HeaderCell.AccessibilityObject, rowHeaders[0]); 1239Assert.Equal(dataGridView.Rows[2].HeaderCell.AccessibilityObject, rowHeaders[1]); 1248dataGridView.Rows.Add("Test 1"); 1249dataGridView.Rows.Add("Test 2"); 1250dataGridView.Rows.Add("Test 3"); 1251dataGridView.Rows[1].Visible = false; 1257Assert.Equal(dataGridView.Rows[0].HeaderCell.AccessibilityObject, rowHeaders[0]); 1258Assert.Equal(dataGridView.Rows[2].HeaderCell.AccessibilityObject, rowHeaders[1]); 1267dataGridView.Rows.Add("Test 1"); 1268dataGridView.Rows.Add("Test 2"); 1269dataGridView.Rows.Add("Test 3"); 1270dataGridView.Rows[2].Visible = false; 1276Assert.Equal(dataGridView.Rows[0].HeaderCell.AccessibilityObject, rowHeaders[0]); 1277Assert.Equal(dataGridView.Rows[1].HeaderCell.AccessibilityObject, rowHeaders[1]); 1286dataGridView.Rows.Add("Test 1"); 1287dataGridView.Rows.Add("Test 2"); 1288dataGridView.Rows.Add("Test 3"); 1289dataGridView.Rows[0].Visible = false; 1290dataGridView.Rows[1].Visible = false; 1291dataGridView.Rows[2].Visible = false; 1307dataGridView.Rows.Add(); 1308dataGridView.Rows.Add(); 1309dataGridView.Rows.Add(); 1311dataGridView.Rows[0].Visible = false; 1313int rowCount = dataGridView.Rows.Count; 1322: dataGridView.Rows[i + 1].Cells[j + 1].AccessibilityObject; 1338dataGridView.Rows.Add(); 1339dataGridView.Rows.Add(); 1340dataGridView.Rows.Add(); 1342dataGridView.Rows[1].Visible = false; 1344int rowCount = dataGridView.Rows.Count; 1349AccessibleObject expected = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1353expected = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1359expected = dataGridView.Rows[2].Cells[0].AccessibilityObject; 1363expected = dataGridView.Rows[2].Cells[2].AccessibilityObject; 1381dataGridView.Rows.Add(); 1382dataGridView.Rows.Add(); 1383dataGridView.Rows.Add(); 1385dataGridView.Rows[2].Visible = false; 1387int rowCount = dataGridView.Rows.Count; 1396: dataGridView.Rows[i].Cells[j].AccessibilityObject; 1417AccessibleObject accessibleObjectCell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1418AccessibleObject accessibleObjectCell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1419AccessibleObject accessibleObjectCell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1440AccessibleObject accessibleObjectCell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1441AccessibleObject accessibleObjectCell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1462AccessibleObject accessibleObjectCell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1463AccessibleObject accessibleObjectCell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1484AccessibleObject accessibleObjectCell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1485AccessibleObject accessibleObjectCell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1552dataGridView.Rows.Add("1"); 1553dataGridView.Rows.Add("2"); 1554dataGridView.Rows.Add("3"); 1565dataGridView.Rows.Add("1"); 1566dataGridView.Rows.Add("2"); 1567dataGridView.Rows.Add("3"); 1568dataGridView.Rows[0].Visible = false; 1579dataGridView.Rows.Add("1"); 1580dataGridView.Rows.Add("2"); 1581dataGridView.Rows.Add("3"); 1582dataGridView.Rows[0].Visible = false; 1583dataGridView.Rows[1].Visible = false; 1594dataGridView.Rows.Add("1"); 1595dataGridView.Rows.Add("2"); 1596dataGridView.Rows.Add("3"); 1597dataGridView.Rows[0].Visible = false; 1598dataGridView.Rows[1].Visible = false; 1599dataGridView.Rows[2].Visible = false; 1610dataGridView.Rows.Add("1"); 1611dataGridView.Rows.Add("2"); 1612dataGridView.Rows.Add("3"); 1623dataGridView.Rows.Add("1"); 1624dataGridView.Rows.Add("2"); 1625dataGridView.Rows.Add("3"); 1626dataGridView.Rows[0].Visible = false; 1637dataGridView.Rows.Add("1"); 1638dataGridView.Rows.Add("2"); 1639dataGridView.Rows.Add("3"); 1640dataGridView.Rows[0].Visible = false; 1641dataGridView.Rows[1].Visible = false; 1652dataGridView.Rows.Add("1"); 1653dataGridView.Rows.Add("2"); 1654dataGridView.Rows.Add("3"); 1655dataGridView.Rows[0].Visible = false; 1656dataGridView.Rows[1].Visible = false; 1657dataGridView.Rows[2].Visible = false;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (148)
55accCellWidthSum += dataGridView.Rows[0].Cells[i].AccessibilityObject.BoundingRectangle.Width; 58int accRowWidth = dataGridView.Rows[0].AccessibilityObject.BoundingRectangle.Width; 86accCellWidthSum += dataGridView.Rows[0].Cells[i].AccessibilityObject.BoundingRectangle.Width; 89int accRowWidth = dataGridView.Rows[0].AccessibilityObject.BoundingRectangle.Width; 233dataGridView.Rows.Add("1"); 234dataGridView.Rows.Add("2"); 235dataGridView.Rows.Add("3"); 237AccessibleObject accessibleObject = dataGridView.Rows[2].Cells[0].AccessibilityObject; 251dataGridView.Rows.Add("1"); 252dataGridView.Rows.Add("2"); 253dataGridView.Rows.Add("3"); 254dataGridView.Rows[0].Visible = false; 256AccessibleObject accessibleObject = dataGridView.Rows[2].Cells[0].AccessibilityObject; 270dataGridView.Rows.Add("1"); 271dataGridView.Rows.Add("2"); 272dataGridView.Rows.Add("3"); 273dataGridView.Rows[0].Visible = false; 274dataGridView.Rows[1].Visible = false; 276AccessibleObject accessibleObject = dataGridView.Rows[2].Cells[0].AccessibilityObject; 647dataGridView.Rows.Add(new DataGridViewRow()); 648dataGridView.Rows.Add(new DataGridViewRow()); 650dataGridView.Rows[0].Cells[0].ReadOnly = true; 651dataGridView.Rows[1].ReadOnly = true; 652dataGridView.Rows[2].ReadOnly = false; 654foreach (DataGridViewRow row in dataGridView.Rows) 681dataGridView.Rows.Add(new DataGridViewRow()); 683DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.Rows[0].Cells[0]); 696dataGridView.Rows.Add(new DataGridViewRow()); 698DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.Rows[0].Cells[0]); 711dataGridView.Rows.Add(new DataGridViewRow()); 713DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.Rows[0].Cells[0]); 741dataGridView.Rows.Add(new DataGridViewRow()); 742DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.Rows[0].Cells[0]); 773dataGridView.Rows.Add("1"); 774dataGridView.Rows.Add("2"); 775dataGridView.Rows.Add("3"); 777AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 778AccessibleObject accessibleObject2 = dataGridView.Rows[1].Cells[0].AccessibilityObject; 779AccessibleObject accessibleObject3 = dataGridView.Rows[2].Cells[0].AccessibilityObject; 792dataGridView.Rows.Add("1"); 793dataGridView.Rows.Add("2"); 794dataGridView.Rows.Add("3"); 795dataGridView.Rows[0].Visible = false; 797AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 798AccessibleObject accessibleObject2 = dataGridView.Rows[1].Cells[0].AccessibilityObject; 799AccessibleObject accessibleObject3 = dataGridView.Rows[2].Cells[0].AccessibilityObject; 812dataGridView.Rows.Add("1"); 813dataGridView.Rows.Add("2"); 814dataGridView.Rows.Add("3"); 815dataGridView.Rows[1].Visible = false; 817AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 818AccessibleObject accessibleObject2 = dataGridView.Rows[1].Cells[0].AccessibilityObject; 819AccessibleObject accessibleObject3 = dataGridView.Rows[2].Cells[0].AccessibilityObject; 832dataGridView.Rows.Add("1"); 833dataGridView.Rows.Add("2"); 834dataGridView.Rows.Add("3"); 835dataGridView.Rows[2].Visible = false; 837AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 838AccessibleObject accessibleObject2 = dataGridView.Rows[1].Cells[0].AccessibilityObject; 839AccessibleObject accessibleObject3 = dataGridView.Rows[2].Cells[0].AccessibilityObject; 873dataGridView.Rows.Add("1"); 875AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 876AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 877AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 893dataGridView.Rows.Add("1"); 895AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 896AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 897AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 913dataGridView.Rows.Add("1"); 915AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 916AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 917AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 933dataGridView.Rows.Add("1"); 935AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 936AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 937AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 955dataGridView.Rows.Add("1"); 957AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 958AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 959AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 978dataGridView.Rows.Add("1"); 980AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 981AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 982AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1001dataGridView.Rows.Add("1"); 1003AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1004AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1005AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1024dataGridView.Rows.Add("1"); 1026AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1027AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1028AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1041dataGridView.Rows.Add(new DataGridViewRow()); 1043DataGridViewCellAccessibleObject dataGridViewCellAccessibleObject = new(dataGridView.Rows[0].Cells[0]); 1057DataGridViewRow row = dataGridView.Rows[0]; 1087AccessibleObject rowHeader = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1088AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1089AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1090AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1106DataGridViewRow row = dataGridView.Rows[0]; 1125AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1126AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1127AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1144AccessibleObject rowHeader = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1145AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1146AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1163AccessibleObject rowHeader = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1164AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1165AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1182AccessibleObject rowHeader = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1183AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1184AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1202AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1203AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1204AccessibleObject cell4 = dataGridView.Rows[0].Cells[3].AccessibilityObject; 1222AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1223AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1224AccessibleObject cell4 = dataGridView.Rows[0].Cells[3].AccessibilityObject; 1242AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1243AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1244AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1263AccessibleObject rowHeader = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1264AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1265AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1266AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1288AccessibleObject rowHeader = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1289AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1290AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1310AccessibleObject rowHeader = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1311AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1312AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1332AccessibleObject rowHeader = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1333AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1334AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1354AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1355AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1356AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1377AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1378AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1397AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1398AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1417AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1418AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1434AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1435AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1452AccessibleObject cell = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1484dataGridView.Rows.Add(new DataGridViewRow()); 1485Assert.Equal($"{string.Format(SR.DataGridView_AccRowName, expectedIndex)}, Not sorted.", dataGridView.Rows[0].Cells[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (26)
33var cell = control.Rows[0].Cells[0]; 77var cell = control.Rows[0].Cells[0]; 135control.Rows.Add(new DataGridViewRow()); 136var cell = control.Rows[0].Cells[0]; 159control.Rows.Add(new DataGridViewRow()); 160var cell = control.Rows[0].Cells[0]; 214control.Rows.Add(new DataGridViewRow()); 215var cell = control.Rows[0].Cells[0]; 256dataGridView.Rows.Add(row); 259DataGridViewCell cell = dataGridView.Rows[0].Cells[0]; 275dataGridView.Rows.Add(true); 276Assert.Equal(ToggleState.ToggleState_On, dataGridView.Rows[1].Cells[0].AccessibilityObject.ToggleState); 278dataGridView.Rows.Add(false); 279Assert.Equal(ToggleState.ToggleState_Off, dataGridView.Rows[2].Cells[0].AccessibilityObject.ToggleState); 281dataGridView.Rows.Add(CheckState.Indeterminate); 282Assert.Equal(ToggleState.ToggleState_Indeterminate, dataGridView.Rows[3].Cells[0].AccessibilityObject.ToggleState); 284dataGridView.Rows.Add(CheckState.Checked); 285Assert.Equal(ToggleState.ToggleState_On, dataGridView.Rows[4].Cells[0].AccessibilityObject.ToggleState); 287dataGridView.Rows.Add(CheckState.Unchecked); 288Assert.Equal(ToggleState.ToggleState_Off, dataGridView.Rows[5].Cells[0].AccessibilityObject.ToggleState); 294dataGridView.Rows.Add("on"); 295Assert.Equal(ToggleState.ToggleState_On, dataGridView.Rows[4].Cells[0].AccessibilityObject.ToggleState); 297dataGridView.Rows.Add("off"); 298Assert.Equal(ToggleState.ToggleState_Off, dataGridView.Rows[5].Cells[0].AccessibilityObject.ToggleState); 300dataGridView.Rows.Add("not set"); 301Assert.Equal(ToggleState.ToggleState_Indeterminate, dataGridView.Rows[3].Cells[0].AccessibilityObject.ToggleState);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxCellAccessibleObjectTests.cs (6)
30dataGridView.Rows.Add(); 31dataGridView.CurrentCell = dataGridView.Rows[0].Cells[0]; 38bool actualPropertyValue = (bool)dataGridView.Rows[0].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsExpandCollapsePatternAvailablePropertyId); 64dataGridView.Rows.Add(); 65dataGridView.CurrentCell = dataGridView.Rows[0].Cells[0]; 72int actualPropertyValue = (int)dataGridView.Rows[0].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (2)
120control.Rows.Add(); 123control.CurrentCell = control.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (405)
82dataGridView.Rows.Add("1"); 83dataGridView.Rows.Add("2"); 84dataGridView.Rows.Add("3"); 86AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 87AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 88AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 102dataGridView.Rows.Add("1"); 103dataGridView.Rows.Add("2"); 104dataGridView.Rows.Add("3"); 105dataGridView.Rows[0].Visible = false; 107AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 108AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 109AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 123dataGridView.Rows.Add("1"); 124dataGridView.Rows.Add("2"); 125dataGridView.Rows.Add("3"); 126dataGridView.Rows[1].Visible = false; 128AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 129AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 130AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 144dataGridView.Rows.Add("1"); 145dataGridView.Rows.Add("2"); 146dataGridView.Rows.Add("3"); 147dataGridView.Rows[2].Visible = false; 149AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 150AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 151AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 412dataGridView.Rows.Add("1"); 413dataGridView.Rows.Add("2"); 414dataGridView.Rows.Add("3"); 417AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 418AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 419AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 420AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 441dataGridView.Rows.Add("1"); 442dataGridView.Rows.Add("2"); 443dataGridView.Rows.Add("3"); 444dataGridView.Rows[0].Visible = false; 447AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 448AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 449AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 468dataGridView.Rows.Add("1"); 469dataGridView.Rows.Add("2"); 470dataGridView.Rows.Add("3"); 471dataGridView.Rows[1].Visible = false; 474AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 475AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 476AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 495dataGridView.Rows.Add("1"); 496dataGridView.Rows.Add("2"); 497dataGridView.Rows.Add("3"); 498dataGridView.Rows[2].Visible = false; 501AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 502AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 503AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 522dataGridView.Rows.Add("1"); 523dataGridView.Rows.Add("2"); 524dataGridView.Rows.Add("3"); 526AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 527AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 528AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 545dataGridView.Rows.Add("1"); 546dataGridView.Rows.Add("2"); 547dataGridView.Rows.Add("3"); 548dataGridView.Rows[0].Visible = false; 550AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 551AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 566dataGridView.Rows.Add("1"); 567dataGridView.Rows.Add("2"); 568dataGridView.Rows.Add("3"); 569dataGridView.Rows[1].Visible = false; 571AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 572AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 587dataGridView.Rows.Add("1"); 588dataGridView.Rows.Add("2"); 589dataGridView.Rows.Add("3"); 590dataGridView.Rows[2].Visible = false; 592AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 593AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 608dataGridView.Rows.Add("1"); 609dataGridView.Rows.Add("2"); 610dataGridView.Rows.Add("3"); 612AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 613AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 614AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 615AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 634dataGridView.Rows.Add("1"); 635dataGridView.Rows.Add("2"); 636dataGridView.Rows.Add("3"); 638dataGridView.Rows[0].Visible = false; 640AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 641AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 642AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 659dataGridView.Rows.Add("1"); 660dataGridView.Rows.Add("2"); 661dataGridView.Rows.Add("3"); 663dataGridView.Rows[1].Visible = false; 665AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 666AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 667AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 684dataGridView.Rows.Add("1"); 685dataGridView.Rows.Add("2"); 686dataGridView.Rows.Add("3"); 688dataGridView.Rows[2].Visible = false; 690AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 691AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 692AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 709dataGridView.Rows.Add("1"); 710dataGridView.Rows.Add("2"); 711dataGridView.Rows.Add("3"); 714AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 715AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 716AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 735dataGridView.Rows.Add("1"); 736dataGridView.Rows.Add("2"); 737dataGridView.Rows.Add("3"); 738dataGridView.Rows[0].Visible = false; 741AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 742AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 759dataGridView.Rows.Add("1"); 760dataGridView.Rows.Add("2"); 761dataGridView.Rows.Add("3"); 762dataGridView.Rows[1].Visible = false; 765AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 766AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 783dataGridView.Rows.Add("1"); 784dataGridView.Rows.Add("2"); 785dataGridView.Rows.Add("3"); 786dataGridView.Rows[2].Visible = false; 789AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 790AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 807dataGridView.Rows.Add("1"); 808dataGridView.Rows.Add("2"); 809dataGridView.Rows.Add("3"); 812AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 813AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 814AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 815AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 836dataGridView.Rows.Add("1"); 837dataGridView.Rows.Add("2"); 838dataGridView.Rows.Add("3"); 839dataGridView.Rows[0].Visible = false; 842AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 843AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 844AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 863dataGridView.Rows.Add("1"); 864dataGridView.Rows.Add("2"); 865dataGridView.Rows.Add("3"); 866dataGridView.Rows[1].Visible = false; 869AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 870AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 871AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 890dataGridView.Rows.Add("1"); 891dataGridView.Rows.Add("2"); 892dataGridView.Rows.Add("3"); 893dataGridView.Rows[2].Visible = false; 896AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 897AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 898AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 917dataGridView.Rows.Add("1"); 918dataGridView.Rows.Add("2"); 919dataGridView.Rows.Add("3"); 921AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 922AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 923AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 940dataGridView.Rows.Add("1"); 941dataGridView.Rows.Add("2"); 942dataGridView.Rows.Add("3"); 943dataGridView.Rows[0].Visible = false; 945AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 946AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 961dataGridView.Rows.Add("1"); 962dataGridView.Rows.Add("2"); 963dataGridView.Rows.Add("3"); 964dataGridView.Rows[1].Visible = false; 966AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 967AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 982dataGridView.Rows.Add("1"); 983dataGridView.Rows.Add("2"); 984dataGridView.Rows.Add("3"); 985dataGridView.Rows[2].Visible = false; 987AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 988AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1003dataGridView.Rows.Add("1"); 1004dataGridView.Rows.Add("2"); 1005dataGridView.Rows.Add("3"); 1007AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1008AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1009AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1010AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 1029dataGridView.Rows.Add("1"); 1030dataGridView.Rows.Add("2"); 1031dataGridView.Rows.Add("3"); 1033dataGridView.Rows[0].Visible = false; 1035AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1036AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1037AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 1054dataGridView.Rows.Add("1"); 1055dataGridView.Rows.Add("2"); 1056dataGridView.Rows.Add("3"); 1058dataGridView.Rows[1].Visible = false; 1060AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1061AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1062AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 1079dataGridView.Rows.Add("1"); 1080dataGridView.Rows.Add("2"); 1081dataGridView.Rows.Add("3"); 1083dataGridView.Rows[2].Visible = false; 1085AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1086AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1087AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 1104dataGridView.Rows.Add("1"); 1105dataGridView.Rows.Add("2"); 1106dataGridView.Rows.Add("3"); 1109AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1110AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1111AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1130dataGridView.Rows.Add("1"); 1131dataGridView.Rows.Add("2"); 1132dataGridView.Rows.Add("3"); 1133dataGridView.Rows[0].Visible = false; 1136AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1137AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1154dataGridView.Rows.Add("1"); 1155dataGridView.Rows.Add("2"); 1156dataGridView.Rows.Add("3"); 1157dataGridView.Rows[1].Visible = false; 1160AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1161AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1178dataGridView.Rows.Add("1"); 1179dataGridView.Rows.Add("2"); 1180dataGridView.Rows.Add("3"); 1181dataGridView.Rows[2].Visible = false; 1184AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1185AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1204AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1205AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1219AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1235AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1236AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1237AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1253AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1254AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1255AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1271AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1272AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1273AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1291AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1307AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1308AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1309AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1325AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1326AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1327AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1343AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1344AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1345AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1363AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1364AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1382AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1383AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1384AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1403AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1404AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1405AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1424AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1425AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1426AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1445AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1446AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1447AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1465AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1466AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1467AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1486AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1487AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1488AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1507AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1508AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1509AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1528AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1529AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1530AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1544AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1560AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1561AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1562AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1578AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1579AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1580AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1596AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1597AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1598AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1616AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1632AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1633AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1634AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1650AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1651AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1652AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1668AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1669AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1670AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1688AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1689AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1707AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1708AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1709AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1728AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1729AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1730AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1749AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1750AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1751AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1770AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1771AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1772AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1790AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1791AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1792AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1811AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1812AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1813AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1832AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1833AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1834AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1853AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1854AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1855AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1873AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1889AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1890AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1891AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1892AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1910AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1911AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1912AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1929AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1930AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1931AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1948AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1949AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1950AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1966AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1967AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 1968AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1969AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1970AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1991AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1992AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 2009AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2010AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 2011AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2012AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2030AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2031AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 2032AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2033AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2051AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2052AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 2053AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2054AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2074AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2075AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2076AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2077AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2098AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2099AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2100AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2120AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2121AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2122AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2142AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2143AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2144AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2163AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2164AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 2165AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2166AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2167AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2189AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2190AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 2191AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2192AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2213AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2214AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 2215AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2216AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2237AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2238AccessibleObject topLeftAccessibilityObject = dataGridView.Rows[0].HeaderCell.AccessibilityObject; 2239AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2240AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2257AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2272AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2288AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2305AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2319AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2334AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2350AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2367AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2383dataGridView.Rows.Add(new DataGridViewRow()); 2384dataGridView.Rows[0].Cells[0].Value = "test1"; 2386Assert.Equal("test1", ((BSTR)dataGridView.Rows[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree()); 2399dataGridView.Rows.Add(new DataGridViewRow()); 2401Assert.Equal(string.Format(SR.DataGridView_AccRowName, expectedIndex), dataGridView.Rows[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (13)
31DataGridViewRowHeaderCell cell = control.Rows[0].HeaderCell; 58DataGridViewRow row = control.Rows[0]; 79var accessibleObject = (DataGridViewRowHeaderCellAccessibleObject)control.Rows[0].HeaderCell.AccessibilityObject; 94DataGridViewRowHeaderCell cell = control.Rows[0].HeaderCell; 114DataGridViewRowHeaderCell cell = control.Rows[0].HeaderCell; 130var accessibleObject = (DataGridViewRowHeaderCellAccessibleObject)control.Rows[0].HeaderCell.AccessibilityObject; 142DataGridViewRow row = control.Rows[0]; 167DataGridViewRow row = control.Rows[0]; 184DataGridViewRow row = control.Rows[0]; 202DataGridViewRow row = control.Rows[0]; 221DataGridViewRow row = control.Rows[0]; 237DataGridViewRow row = control.Rows[0]; 252DataGridViewRow row = control.Rows[0];
System\Windows\Forms\AccessibleObjects\DataGridViewRowsAccessibleObjectTests.cs (12)
20dataGridView.Rows[0].Height = 20; 21dataGridView.Rows[1].Height = 20; 22dataGridView.Rows[2].Height = 20; 23dataGridView.Rows[3].Height = 20; 24dataGridView.Rows[4].Height = 20; 31accRowHeightSum += dataGridView.Rows[i].AccessibilityObject.BoundingRectangle.Height; 49dataGridView.Rows[0].Height = 20; 50dataGridView.Rows[1].Height = 20; 51dataGridView.Rows[2].Height = 20; 52dataGridView.Rows[3].Height = 20; 53dataGridView.Rows[4].Height = 20; 60accRowHeightSum += dataGridView.Rows[i].AccessibilityObject.BoundingRectangle.Height;
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (11)
81control.Rows.Add("Row1"); 82DataGridViewCell currentCell = control.Rows[0].Cells[0]; 100DataGridViewCell currentCell = control.Rows[0].Cells[0]; 121control.Rows.Add("Row1"); 125control.Rows[0].Cells[i].Selected = true; 142control.Rows.Add("Row1"); 144DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0]; 179control.Rows.Add("Row1"); 181DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0]; 200control.Rows.Add("Row1"); 201DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (16)
59control.Rows.Add("Row1"); 60DataGridViewRow row = control.Rows[0]; 84control.Rows.Add("Row1"); 85DataGridViewCell currentCell = control.Rows[0].Cells[0]; 91var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.Rows[0]], null); 103DataGridViewCell currentCell = control.Rows[0].Cells[0]; 109var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.Rows[0]], null); 124control.Rows.Add("Row1"); 125DataGridViewRow row = control.Rows[0]; 147control.Rows.Add("Row1"); 148DataGridViewRow row = control.Rows[0]; 172var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, BindingFlags.NonPublic | BindingFlags.Instance, null, [control.Rows[0]], null); 186control.Rows.Add("Row1"); 187DataGridViewRow row = control.Rows[0]; 208control.Rows.Add("Row1"); 209DataGridViewRow row = control.Rows[0];
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (2)
144control.Rows.Add(); 147control.CurrentCell = control.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (1)
21AccessibleObject expectedNextSibling = dataGridView.Rows[0].AccessibilityObject;
System\Windows\Forms\DataGridViewButtonCellTests.cs (27)
67dataGridView.Rows.Add(); 81dataGridView.Rows.Add(); 106dataGridView.Rows.Add(); 120dataGridView.Rows.Add(); 135dataGridView.Rows.Add(); 150dataGridView.Rows.Add(); 164dataGridView.Rows.Add(); 192dataGridView.Rows.Add(); 205dataGridView.Rows.Add(); 207dataGridView.Rows[0].Cells[0].Value = "Test"; 208dataGridView.Rows[0].Cells[0].Style.Font = SystemFonts.DefaultFont; 209dataGridView.Rows[0].Cells[0].Style.Alignment = DataGridViewContentAlignment.MiddleCenter; 210dataGridView.Rows[0].Cells[0].Style.Padding = Padding.Empty; 211dataGridView.Rows[0].Cells[0].Style.WrapMode = DataGridViewTriState.False; 217g, dataGridView.Rows[0].Cells[0].Style, 0, Size.Empty); 229dataGridView.Rows.Add(); 244dataGridView.Rows.Add(); 260dataGridView.Rows.Add(); 328dataGridView.Rows.Add(); 347dataGridView.Rows.Add(); 361dataGridView.Rows.Add(); 386dataGridView.Rows.Add(); 411dataGridView.Rows.Add(); 430dataGridView.Rows.Add(); 447dataGridView.Rows.Add(); 463dataGridView.Rows.Add(); 496dataGridView.Rows.Add();
System\Windows\Forms\DataGridViewButtonColumnTests.cs (2)
47_dataGridView.Rows.Add(row); 91_dataGridView.Rows.Add(row);
System\Windows\Forms\DataGridViewCellErrorTextNeededEventArgsTests.cs (1)
19DataGridViewCell cell = dataGridView.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewCellTests.ClipboardTests.cs (4)
67SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 82SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 111SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 129SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0];
System\Windows\Forms\DataGridViewCellTests.cs (172)
90SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 104SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 150DataGridViewCell cell = control.Rows[0].Cells[0]; 168DataGridViewCell cell = control.Rows[0].Cells[0]; 205DataGridViewCell cell = control.Rows[0].Cells[0]; 286DataGridViewCell cell = control.Rows[0].Cells[0]; 308DataGridViewCell cell = control.Rows[0].Cells[0]; 441control.Rows.Add(); 442DataGridViewRow row = control.Rows[0]; 483control.Rows.Add(); 484DataGridViewRow row = control.Rows.SharedRow(0); 508control.Rows.Add(); 509DataGridViewRow row = control.Rows[0]; 551control.Rows.Add(); 554DataGridViewRow row = control.Rows.SharedRow(0); 645DataGridViewCell cell = control.Rows[0].Cells[0]; 660DataGridViewCell cell = control.Rows[0].Cells[0]; 676DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 690SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 729SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 761DataGridViewCell cell = control.Rows[0].Cells[0]; 775DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 788DataGridViewCell cell = control.Rows[0].Cells[0]; 820DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 849DataGridViewCell cell = control.Rows[0].Cells[0]; 885DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1014DataGridViewCell cell = control.Rows[0].Cells[0]; 1041DataGridViewCell cell = control.Rows[0].Cells[0]; 1069DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1096DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1126DataGridViewCell cell = control.Rows[0].Cells[0]; 1169DataGridViewCell cell = control.Rows[0].Cells[0]; 1209DataGridViewCell cell = control.Rows[0].Cells[0]; 1293DataGridViewCell cell = control.Rows[0].Cells[0]; 1308DataGridViewCell cell = control.Rows[0].Cells[0]; 1324DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1382DataGridViewRow row = control.Rows[0]; 1401DataGridViewRow row = control.Rows.SharedRow(0); 1472DataGridViewCell cell = control.Rows[0].Cells[0]; 1486DataGridViewRow row = control.Rows[0]; 1504DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1561DataGridViewCell cell = control.Rows[0].Cells[0]; 1575DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1627DataGridViewRow row = control.Rows[0]; 1652DataGridViewRow row = control.Rows.SharedRow(0); 1788DataGridViewRow row = control.Rows[0]; 1833DataGridViewRow row = control.Rows[0]; 1884DataGridViewRow row = control.Rows[0]; 1923DataGridViewCell cell = control.Rows[0].Cells[0]; 1968DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2021DataGridViewRow row = control.Rows[0]; 2040DataGridViewRow row = control.Rows.SharedRow(0); 2084DataGridViewRow row = control.Rows[0]; 2103DataGridViewRow row = control.Rows.SharedRow(0); 2158DataGridViewCell cell = control.Rows[0].Cells[0]; 2189DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2206DataGridViewCell cell = control.Rows[0].Cells[0]; 2384DataGridViewCell cell = control.Rows[0].Cells[0]; 2411DataGridViewCell cell = control.Rows[0].Cells[0]; 2434DataGridViewCell cell = control.Rows[0].Cells[0]; 2558DataGridViewCell cell = control.Rows[0].Cells[0]; 2572DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2688DataGridViewCell cell = control.Rows[0].Cells[0]; 2711DataGridViewCell cell = control.Rows[0].Cells[0]; 2735DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2758DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2805DataGridViewCell cell = control.Rows[0].Cells[0]; 2941DataGridViewCell cell = control.Rows[0].Cells[0]; 2966DataGridViewCell cell = control.Rows[0].Cells[0]; 3038control.Rows.Add(new DataGridViewRow()); 3039DataGridViewRow row = control.Rows[0]; 3059DataGridViewRow row = control.Rows.SharedRow(0); 3257DataGridViewRow row = control.Rows[0]; 3278DataGridViewRow row = control.Rows[0]; 3297SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 3482SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3619SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3633SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 3650SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3746DataGridViewCell cell = control.Rows[0].Cells[0]; 3763DataGridViewCell cell = control.Rows[0].Cells[0]; 3781DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 3802SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3916SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3945SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 3971SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 4010SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4053SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 4096SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4132SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4261DataGridViewCell cell = control.Rows[0].Cells[0]; 4284DataGridViewCell cell = control.Rows[0].Cells[0]; 4304DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4322DataGridViewCell cell = control.Rows[0].Cells[0]; 4359DataGridViewCell cell = control.Rows[0].Cells[0]; 4395DataGridViewCell cell = control.Rows[0].Cells[0]; 4412DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4461DataGridViewCell cell = control.Rows[0].Cells[0]; 4502control.Rows.Add(); 4503DataGridViewRow row = control.Rows[0]; 4532DataGridViewCell cell = control.Rows[0].Cells[0]; 4576control.Rows.Add(); 4577DataGridViewRow row = control.Rows[0]; 4610DataGridViewRow row = control.Rows[0]; 4628DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4676DataGridViewCell cell = control.Rows[0].Cells[0]; 4693DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4742DataGridViewCell cell = control.Rows[0].Cells[0]; 4756dataGridView.Rows.Add(); 4757var cell = dataGridView.Rows[0].Cells[0]; 4796control.Rows.Add(); 4797control.Rows.Add(); 4798control.Rows.Add(); 4799control.Rows.Add(); 4801control.Rows[0].Cells[1].Value = "Text"; 4802control.Rows[1].Cells[2].Value = "Text"; 4803control.Rows[1].Cells[3].Value = "Text"; 4804control.Rows[2].Cells[0].Value = "Text"; 4805control.Rows[2].Cells[1].Value = "Text"; 4806control.Rows[2].Cells[3].Value = "Text"; 4807control.Rows[3].Cells[1].Value = "Text"; 4808control.Rows[3].Cells[2].Value = "Text"; 4810IList<Rectangle> neighbors00 = ((IKeyboardToolTip)control.Rows[0].Cells[0]).GetNeighboringToolsRectangles(); 4811Assert.True(neighbors00.Contains(control.Rows[0].Cells[1].AccessibilityObject.Bounds)); 4812Assert.False(neighbors00.Contains(control.Rows[1].Cells[1].AccessibilityObject.Bounds)); 4813Assert.False(neighbors00.Contains(control.Rows[1].Cells[0].AccessibilityObject.Bounds)); 4815IList<Rectangle> neighbors21 = ((IKeyboardToolTip)control.Rows[2].Cells[1]).GetNeighboringToolsRectangles(); 4816Assert.True(neighbors21.Contains(control.Rows[1].Cells[2].AccessibilityObject.Bounds)); 4817Assert.True(neighbors21.Contains(control.Rows[2].Cells[0].AccessibilityObject.Bounds)); 4818Assert.True(neighbors21.Contains(control.Rows[2].Cells[1].AccessibilityObject.Bounds)); 4819Assert.True(neighbors21.Contains(control.Rows[3].Cells[1].AccessibilityObject.Bounds)); 4820Assert.False(neighbors21.Contains(control.Rows[1].Cells[1].AccessibilityObject.Bounds)); 4822IList<Rectangle> neighbors33 = ((IKeyboardToolTip)control.Rows[3].Cells[3]).GetNeighboringToolsRectangles(); 4823Assert.True(neighbors33.Contains(control.Rows[2].Cells[3].AccessibilityObject.Bounds)); 4824Assert.True(neighbors33.Contains(control.Rows[3].Cells[2].AccessibilityObject.Bounds)); 4825Assert.False(neighbors33.Contains(control.Rows[2].Cells[2].AccessibilityObject.Bounds)); 4873DataGridViewRow row = control.Rows[0]; 4894SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4920SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 4934SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5005SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5021SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5036SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5050SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5071control.Rows.Add(); 5072SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5110SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5151SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5187SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5204SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5567SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5604SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5641SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5668SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5695SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5822SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5849SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5876SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5913SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5950SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5977SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 6004SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 6309SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 6331SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 6365SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 6382SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 6421DataGridViewCell cell = control.Rows[0].Cells[0]; 6432DataGridViewImageCell cell = dataGridView.Rows[0].Cells[0].Should().BeOfType<DataGridViewImageCell>().Which; 6449SubDataGridViewCheckBoxCell cell = (SubDataGridViewCheckBoxCell)dataGridView.Rows[0].Cells[0]; 6520var cell = (SubDataGridViewCheckBoxCell)dataGridView.Rows[0].Cells[0]; 6525dataGridView.Rows.Clear(); 6526dataGridView.Rows.Add();
System\Windows\Forms\DataGridViewComboBoxColumnTests.cs (20)
42dataGridView.Rows.Add(2); 46foreach (DataGridViewRow row in dataGridView.Rows) 71dataGridView.Rows.Add(2); 76foreach (DataGridViewRow row in dataGridView.Rows) 100dataGridView.Rows.Add(2); 104foreach (DataGridViewRow row in dataGridView.Rows) 127dataGridView.Rows.Add(2); 131foreach (DataGridViewRow row in dataGridView.Rows) 155dataGridView.Rows.Add(); 159foreach (DataGridViewRow row in dataGridView.Rows) 183dataGridView.Rows.Add(2); 187foreach (DataGridViewRow row in dataGridView.Rows) 210dataGridView.Rows.Add(2); 214foreach (DataGridViewRow row in dataGridView.Rows) 251dataGridView.Rows.Add(2); 255foreach (DataGridViewRow row in dataGridView.Rows) 278dataGridView.Rows.Add(2); 282foreach (DataGridViewRow row in dataGridView.Rows) 307dataGridView.Rows.Add(2); 311foreach (DataGridViewRow row in dataGridView.Rows)
System\Windows\Forms\DataGridViewElementTests.cs (11)
63control.Rows[0].Cells[0] = element; 93control.Rows[0].Cells[0] = element; 115control.Rows[0].Cells[0] = element; 145control.Rows[0].Cells[0] = element; 167control.Rows[0].Cells[0] = element; 197control.Rows[0].Cells[0] = element; 219control.Rows[0].Cells[0] = element; 249control.Rows[0].Cells[0] = element; 291control.Rows[0].Cells[0] = element; 321control.Rows[0].Cells[0] = element; 343control.Rows[0].Cells[0] = element;
System\Windows\Forms\DataGridViewHeaderCellTests.cs (108)
129control.Rows.Add(); 130DataGridViewRow row = control.Rows[0]; 177control.Rows.Add(); 178DataGridViewRow row = control.Rows[0]; 250control.Rows.Add(); 251DataGridViewRow row = control.Rows.SharedRow(0); 283control.Rows.Add(); 284DataGridViewRow row = control.Rows[0]; 353control.Rows.Add(); 354DataGridViewRow row = control.Rows[0]; 418control.Rows.Add(); 419DataGridViewRow row = control.Rows.SharedRow(0); 502DataGridViewRow row = control.Rows[0]; 539DataGridViewRow row = control.Rows.SharedRow(0); 627DataGridViewRow row = control.Rows[0]; 649DataGridViewRow row = control.Rows[0]; 672DataGridViewRow row = control.Rows[0]; 712DataGridViewRow row = control.Rows.SharedRow(0); 772DataGridViewCell cell = control.Rows[0].Cells[0]; 789DataGridViewRow row = control.Rows[0]; 842DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 938DataGridViewRow row = control.Rows[0]; 962DataGridViewRow row = control.Rows[0]; 1004DataGridViewRow row = control.Rows[0]; 1058DataGridViewRow row = control.Rows.SharedRow(0); 1120DataGridViewRow row = control.Rows[0]; 1142DataGridViewRow row = control.Rows[0]; 1165DataGridViewRow row = control.Rows[0]; 1197DataGridViewRow row = control.Rows.SharedRow(0); 1259DataGridViewCell cell = control.Rows[0].Cells[0]; 1277DataGridViewRow row = control.Rows[0]; 1331DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1381DataGridViewCell cell = control.Rows[0].Cells[0]; 1398DataGridViewRow row = control.Rows[0]; 1615DataGridViewCell cell = control.Rows[0].Cells[0]; 1642DataGridViewCell cell = control.Rows[0].Cells[0]; 1670DataGridViewRow row = control.Rows[0]; 1699DataGridViewRow row = control.Rows[0]; 1909control.Rows.Add(new DataGridViewRow()); 1910DataGridViewRow row = control.Rows[0]; 1934control.Rows.Add(new DataGridViewRow()); 1935DataGridViewRow row = control.Rows[0]; 1960control.Rows.Add(new DataGridViewRow()); 1961DataGridViewRow row = control.Rows[0]; 2009DataGridViewRow row = control.Rows.SharedRow(0); 2282DataGridViewCell cell = control.Rows[0].Cells[0]; 2305DataGridViewCell cell = control.Rows[0].Cells[0]; 2363DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2381DataGridViewCell cell = control.Rows[0].Cells[0]; 2418DataGridViewCell cell = control.Rows[0].Cells[0]; 2513DataGridViewCell cell = control.Rows[0].Cells[0]; 2554control.Rows.Add(); 2555DataGridViewRow row = control.Rows[0]; 2578DataGridViewRow row = control.Rows[0]; 2596control.Rows.Add(); 2597DataGridViewRow row = control.Rows[0]; 2664control.Rows.Add(); 2665DataGridViewRow row = control.Rows[0]; 2729DataGridViewCell cell = control.Rows[0].Cells[0]; 2773control.Rows.Add(); 2774DataGridViewRow row = control.Rows[0]; 2807DataGridViewRow row = control.Rows[0]; 2836control.Rows.Add(); 2837DataGridViewRow row = control.Rows[0]; 2924control.Rows.Add(); 2925DataGridViewRow row = control.Rows[0]; 3004DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 3054DataGridViewCell cell = control.Rows[0].Cells[0]; 3072DataGridViewRow row = control.Rows[0]; 3120DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 3175DataGridViewRow row = control.Rows[0]; 3198DataGridViewRow row = control.Rows[0]; 3222DataGridViewRow row = control.Rows[0]; 3261SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3325SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3342SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3449SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3465SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3481DataGridViewRow row = control.Rows[0]; 3498DataGridViewRow row = control.Rows[0]; 3570SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3584SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3605control.Rows.Add(); 3606SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3644SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3685SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3755SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3804SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3888SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3956SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3995SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4037SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4078SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4185SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4211SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4228SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4268SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4296SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4336SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4364SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4396SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4426SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4483SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4509SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4567SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4594SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4611SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4660DataGridViewCell cell = control.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewImageCellTests.cs (9)
123dataGridView.Rows.Add(); 148dataGridView.Rows.Add(); 162dataGridView.Rows.Add(); 178dataGridView.Rows.Add(); 194dataGridView.Rows.Add(); 233dataGridView.Rows.Add(); 235dataGridView.Rows[0].Cells[0] = dataGridViewImageCell; 261dataGridView.Rows.Add(); 263dataGridView.Rows[0].Cells[0] = dataGridViewImageCell;
System\Windows\Forms\DataGridViewImageColumnTests.cs (12)
47dataGridView.Rows.Add(3); 50foreach (DataGridViewRow row in dataGridView.Rows) 60foreach (DataGridViewRow row in dataGridView.Rows) 75dataGridView.Rows.Add(2); 80foreach (DataGridViewRow row in dataGridView.Rows) 142dataGridView.Rows.Add(2); 147foreach (DataGridViewRow row in dataGridView.Rows) 176dataGridView.Rows.Add(2); 182foreach (DataGridViewRow row in dataGridView.Rows) 194foreach (DataGridViewRow row in dataGridView.Rows) 210dataGridView.Rows.Add(2); 217foreach (DataGridViewRow row in dataGridView.Rows)
System\Windows\Forms\DataGridViewLinkCellTests.cs (26)
21dataGridView.Rows.Add(); 36dataGridView.Rows[0].Cells[0] = _cell; 58dataGridView.Rows[0].Cells[0] = _cell; 120dataGridView.Rows[0].Cells[0] = _cell; 215dataGridView.Rows[0].Cells[0] = _cell; 216string result = dataGridView.Rows[0].Cells[0].ToString(); 275dataGridView.Rows[0].Cells[0] = _cell; 277Action action = () => dataGridView.Rows[0].Cells[0].GetContentBounds(-1); 294dataGridView.Rows[0].Cells[0] = _cell; 299ReferenceEquals(_cell, dataGridView.Rows[0].Cells[0]).Should().BeTrue(); 310dataGridView.Rows[0].Cells[0] = _cell; 321dataGridView.Rows[0].Cells[0] = _cell; 336dataGridView.Rows.Add(); 337dataGridView.Rows[0].Cells[0] = _cell; 352dataGridView.Rows.Add(); 354dataGridView.Rows[0].Cells[0] = _cell; 366dataGridView.Rows[0].Cells[0] = _cell; 381dataGridView.Rows.Add(); 383dataGridView.Rows[0].Cells[0] = _cell; 415dataGridView.Rows[0].Cells[0] = _cell; 428dataGridView.Rows[0].Cells[0] = _cell; 521dataGridView.Rows[0].Cells[0] = _cell; 549dataGridView.Rows[0].Cells[0] = _cell; 577dataGridView.Rows[0].Cells[0] = _cell; 626dataGridView.Rows[0].Cells[0] = _cell; 641dataGridView.Rows[0].Cells[0] = _cell;
System\Windows\Forms\DataGridViewLinkColumnTests.cs (19)
52_dataGridView.Rows.Add(2); 57foreach (DataGridViewRow row in _dataGridView.Rows) 67_dataGridView.Rows.Add(2); 106_dataGridView.Rows.Add(2); 111foreach (DataGridViewRow row in _dataGridView.Rows) 121_dataGridView.Rows.Add(2); 144_dataGridView.Rows.Add(2); 149foreach (DataGridViewRow row in _dataGridView.Rows) 159_dataGridView.Rows.Add(2); 182_dataGridView.Rows.Add(2); 205_dataGridView.Rows.Add(2); 210foreach (DataGridViewRow row in _dataGridView.Rows) 220_dataGridView.Rows.Add(2); 243_dataGridView.Rows.Add(2); 248foreach (DataGridViewRow row in _dataGridView.Rows) 258_dataGridView.Rows.Add(2); 281_dataGridView.Rows.Add(2); 286foreach (DataGridViewRow row in _dataGridView.Rows) 296_dataGridView.Rows.Add(2);
System\Windows\Forms\DataGridViewRowErrorTextNeededEventArgsTests.cs (1)
19DataGridViewRow row = dataGridView.Rows[0];
System\Windows\Forms\DataGridViewRowHeightInfoNeededEventArgsTests.cs (4)
22DataGridViewRow row = dataGridView.Rows[0]; 46DataGridViewRow row = dataGridView.Rows[0]; 74DataGridViewRow row = dataGridView.Rows[0]; 102DataGridViewRow row = dataGridView.Rows[0];
System\Windows\Forms\DataGridViewRowTests.cs (199)
60DataGridViewRow row = control.Rows[0]; 76DataGridViewRow row = control.Rows[0]; 113DataGridViewRow row = control.Rows[0]; 144DataGridViewRow row = control.Rows.SharedRow(0); 196DataGridViewRow row = control.Rows[0]; 217DataGridViewRow row = control.Rows.SharedRow(0); 269DataGridViewRow row = control.Rows[0]; 316DataGridViewRow row = control.Rows[0]; 331DataGridViewRow row = control.Rows[0]; 343DataGridViewRow row = control.Rows.SharedRow(0); 358DataGridViewRow row = control.Rows.SharedRow(0); 370DataGridViewRow row = control.Rows[0]; 383DataGridViewRow row = control.Rows.SharedRow(0); 447DataGridViewRow row = control.Rows[0]; 474DataGridViewRow row = control.Rows[0]; 497DataGridViewRow row = control.Rows[0]; 569DataGridViewRow row = control.Rows.SharedRow(0); 581DataGridViewRow row = control.Rows[0]; 593DataGridViewRow row = control.Rows.SharedRow(0); 646DataGridViewRow row = control.Rows[0]; 667DataGridViewRow row = control.Rows[0]; 687DataGridViewRow row = control.Rows.SharedRow(0); 708DataGridViewRow row = control.Rows.SharedRow(0); 746DataGridViewRow row = control.Rows[0]; 758DataGridViewRow row = control.Rows.SharedRow(0); 770DataGridViewRow row = control.Rows[0]; 782DataGridViewRow row = control.Rows.SharedRow(0); 817DataGridViewRow row = control.Rows[0]; 837DataGridViewRow row = control.Rows[0]; 887DataGridViewRow row = control.Rows.SharedRow(0); 899DataGridViewRow row = control.Rows[0]; 912DataGridViewRow row = control.Rows[0]; 947DataGridViewRow row = control.Rows[0]; 977DataGridViewRow row = control.Rows.SharedRow(0); 1022DataGridViewRow row = control.Rows[0]; 1043DataGridViewRow row = control.Rows[0]; 1064DataGridViewRow row = control.Rows[0]; 1110DataGridViewRow row = control.Rows.SharedRow(0); 1138control.Rows.Add(); 1139Assert.False(control.Rows[0].Frozen); 1152control.Rows.Add(); 1153Assert.Throws<InvalidOperationException>(() => control.Rows.SharedRow(0).Frozen); 1196control.Rows.Add(); 1197DataGridViewRow row = control.Rows[0]; 1226control.Rows.Add(); 1227DataGridViewRow row = control.Rows[0]; 1271control.Rows.Add(); 1272control.Rows.Add(); 1273control.Rows.Add(); 1274control.Rows.Add(); 1275DataGridViewRow row1 = control.Rows[0]; 1276DataGridViewRow row2 = control.Rows[1]; 1278DataGridViewRow row3 = control.Rows[2]; 1279DataGridViewRow row4 = control.Rows[3]; 1325DataGridViewRow row = control.Rows[0]; 1369control.Rows.Add(); 1370Assert.Throws<InvalidOperationException>(() => control.Rows.SharedRow(0).Frozen = value); 1394SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 1412SubDataGridViewRow row = (SubDataGridViewRow)control.Rows.SharedRow(0); 1441SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 1459SubDataGridViewRow row = (SubDataGridViewRow)control.Rows.SharedRow(0); 1574DataGridViewRow row = control.Rows[0]; 1611DataGridViewRow row = control.Rows[0]; 1651DataGridViewRow row = control.Rows.SharedRow(0); 1688DataGridViewRow row = control.Rows.SharedRow(0); 1727DataGridViewRow row = control.Rows[0]; 1793DataGridViewRow row = control.Rows[0]; 1810DataGridViewRow row = control.Rows.SharedRow(0); 1841DataGridViewRow row = control.Rows[0]; 1876DataGridViewRow row = control.Rows[0]; 1959DataGridViewRow row = control.Rows[0]; 1979DataGridViewRow row = control.Rows[0]; 2052DataGridViewRow row = control.Rows.SharedRow(0); 2171control.Rows.Add(new SubDataGridViewRow()); 2172control.Rows.Add(new SubDataGridViewRow()); 2174DataGridViewRow row = control.Rows[index]; 2198DataGridViewRow row = control.Rows.SharedRow(0); 2210DataGridViewRow row = control.Rows[0]; 2222DataGridViewRow row = control.Rows[0]; 2234DataGridViewRow row = control.Rows.SharedRow(0); 2246DataGridViewRow row = control.Rows.SharedRow(0); 2262DataGridViewRow row = control.Rows[0]; 2279DataGridViewRow row = control.Rows.SharedRow(0); 2310DataGridViewRow row = control.Rows[0]; 2345DataGridViewRow row = control.Rows[0]; 2424DataGridViewRow row = control.Rows[0]; 2446DataGridViewRow row = control.Rows[0]; 2500DataGridViewRow row = control.Rows.SharedRow(0); 2528DataGridViewRow row = control.Rows[0]; 2542DataGridViewRow row = control.Rows.SharedRow(0); 2581DataGridViewRow row = control.Rows[0]; 2607DataGridViewRow row = control.Rows[0]; 2653DataGridViewRow row = control.Rows[0]; 2683DataGridViewRow row = control.Rows[0]; 2724DataGridViewRow row = control.Rows.SharedRow(0); 2739DataGridViewRow row = control.Rows[0]; 2753DataGridViewRow row = control.Rows.SharedRow(0); 2765DataGridViewRow row = control.Rows.SharedRow(0); 2821DataGridViewRow row = control.Rows[0]; 2841DataGridViewRow row = control.Rows[0]; 2884DataGridViewRow row = control.Rows[0]; 2913DataGridViewRow row = control.Rows[0]; 2925DataGridViewRow row = control.Rows.SharedRow(0); 2955DataGridViewRow row = control.Rows[0]; 2981control.Rows.Add(new DataGridViewRow()); 2982control.Rows.Add(new DataGridViewRow()); 2983DataGridViewRow row1 = control.Rows[0]; 2984DataGridViewRow row2 = control.Rows[1]; 3015control.Rows.Add(new DataGridViewRow()); 3016control.Rows.Add(new DataGridViewRow()); 3017DataGridViewRow row1 = control.Rows[0]; 3018DataGridViewRow row2 = control.Rows[1]; 3050DataGridViewRow row = control.Rows.SharedRow(0); 3062DataGridViewRow row = control.Rows[0]; 3074DataGridViewRow row = control.Rows.SharedRow(0); 3086DataGridViewRow row = control.Rows[0]; 3098DataGridViewRow row = control.Rows.SharedRow(0); 3143DataGridViewRow row = control.Rows[0]; 3164DataGridViewRow row = control.Rows[0]; 3186DataGridViewRow row = control.Rows.SharedRow(0); 3207DataGridViewRow row = control.Rows.SharedRow(0); 3228DataGridViewRow row = control.Rows[0]; 3240DataGridViewRow row = control.Rows.SharedRow(0); 3285DataGridViewRow row = control.Rows[0]; 3313DataGridViewRow row = control.Rows[0]; 3354DataGridViewRow row = control.Rows[0]; 3371DataGridViewRow row = control.Rows.SharedRow(0); 3726DataGridViewRow row = control.Rows[0]; 4019DataGridViewRow source = control.Rows[0]; 4126DataGridViewRow row = control.Rows[0]; 4207SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4230SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4246SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4275DataGridViewRow row1 = control.Rows[0]; 4278DataGridViewRow row2 = control.Rows[1]; 4300DataGridViewRow row = control.Rows[0]; 4337DataGridViewRow row = control.Rows[0]; 4370DataGridViewRow row = control.Rows[0]; 4382DataGridViewRow row = control.Rows[0]; 4408DataGridViewRow row1 = control.Rows[0]; 4410DataGridViewRow row2 = control.Rows[1]; 4428DataGridViewRow row = control.Rows[0]; 4462DataGridViewRow row = control.Rows[0]; 4494DataGridViewRow row = control.Rows[0]; 4506DataGridViewRow row = control.Rows[0]; 4525DataGridViewRow row = control.Rows[0]; 4539DataGridViewRow row = control.Rows.SharedRow(0); 4564DataGridViewRow row = control.Rows[0]; 4592SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4616SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4642SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4666SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4690SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4714SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4738SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4763SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4788SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 4807SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 4854SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 4884SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 4924SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 4956SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 4970SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 4984SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 5010SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 5038SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5062SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5088SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5112SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5136SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5160SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5184SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5209SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5234SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5251SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5265SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5279SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5293SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5320SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 5338SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5358SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5382SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5408SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5432SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5456SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5480SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5504SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5529SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5554SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5572SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 5587SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 5602SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 5617SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[1]; 5642SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5658SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5676SubDataGridViewRow row = (SubDataGridViewRow)control.Rows[0]; 5704DataGridViewRow row = control.Rows[0]; 5739DataGridViewRow row = control.Rows[0]; 5751DataGridViewRow row = control.Rows.SharedRow(0);
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (55)
32control.Rows[0].Cells[0].Selected = true; 33control.Rows[1].Cells[0].Selected = false; 34control.Rows[2].Cells[0].Selected = true; 52control.Rows[0].Cells[0].Selected = true; 53control.Rows[1].Cells[0].Selected = false; 54control.Rows[2].Cells[0].Selected = true; 57Assert.Equal(control.Rows[2].Cells[0], collection[0]); 58Assert.Equal(control.Rows[0].Cells[0], collection[1]); 83control.Rows[0].Cells[0].Selected = true; 84control.Rows[1].Cells[0].Selected = false; 85control.Rows[2].Cells[0].Selected = true; 108control.Rows[0].Cells[0].Selected = true; 109control.Rows[1].Cells[0].Selected = false; 110control.Rows[2].Cells[0].Selected = true; 113Assert.True(collection.Contains(control.Rows[0].Cells[0])); 114Assert.False(collection.Contains(control.Rows[1].Cells[0])); 115Assert.True(collection.Contains(control.Rows[2].Cells[0])); 154control.Rows[0].Cells[0].Selected = true; 155control.Rows[1].Cells[0].Selected = false; 156control.Rows[2].Cells[0].Selected = true; 161Assert.Equal([1, control.Rows[2].Cells[0], control.Rows[0].Cells[0]], array); 204control.Rows[0].Cells[0].Selected = true; 205control.Rows[1].Cells[0].Selected = false; 206control.Rows[2].Cells[0].Selected = true; 226control.Rows[0].Cells[0].Selected = true; 227control.Rows[1].Cells[0].Selected = false; 228control.Rows[2].Cells[0].Selected = true; 232Assert.Equal(control.Rows[2].Cells[0], iList[0]); 233Assert.Equal(control.Rows[0].Cells[0], iList[1]); 259control.Rows[0].Cells[0].Selected = true; 260control.Rows[1].Cells[0].Selected = false; 261control.Rows[2].Cells[0].Selected = true; 331control.Rows[0].Cells[0].Selected = true; 332control.Rows[1].Cells[0].Selected = false; 333control.Rows[2].Cells[0].Selected = true; 339Assert.Equal([1, control.Rows[2].Cells[0], control.Rows[0].Cells[0]], array); 368control.Rows[0].Cells[0].Selected = true; 369control.Rows[1].Cells[0].Selected = false; 370control.Rows[2].Cells[0].Selected = true; 374Assert.True(iList.Contains(control.Rows[0].Cells[0])); 375Assert.False(iList.Contains(control.Rows[1].Cells[0])); 376Assert.True(iList.Contains(control.Rows[2].Cells[0])); 409control.Rows[0].Cells[0].Selected = true; 410control.Rows[1].Cells[0].Selected = false; 411control.Rows[2].Cells[0].Selected = true; 421Assert.Same(control.Rows[2].Cells[0], enumerator.Current); 424Assert.Same(control.Rows[0].Cells[0], enumerator.Current); 460control.Rows[0].Cells[0].Selected = true; 461control.Rows[1].Cells[0].Selected = false; 462control.Rows[2].Cells[0].Selected = true; 466Assert.Equal(1, iList.IndexOf(control.Rows[0].Cells[0])); 467Assert.Equal(-1, iList.IndexOf(control.Rows[1].Cells[0])); 468Assert.Equal(0, iList.IndexOf(control.Rows[2].Cells[0]));
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (55)
31control.Rows[0].Selected = true; 32control.Rows[1].Selected = false; 33control.Rows[2].Selected = true; 50control.Rows[0].Selected = true; 51control.Rows[1].Selected = false; 52control.Rows[2].Selected = true; 55Assert.Equal(control.Rows[2], collection[0]); 56Assert.Equal(control.Rows[0], collection[1]); 80control.Rows[0].Selected = true; 81control.Rows[1].Selected = false; 82control.Rows[2].Selected = true; 104control.Rows[0].Selected = true; 105control.Rows[1].Selected = false; 106control.Rows[2].Selected = true; 109Assert.True(collection.Contains(control.Rows[0])); 110Assert.False(collection.Contains(control.Rows[1])); 111Assert.True(collection.Contains(control.Rows[2])); 149control.Rows[0].Selected = true; 150control.Rows[1].Selected = false; 151control.Rows[2].Selected = true; 156Assert.Equal([1, control.Rows[2], control.Rows[0]], array); 198control.Rows[0].Selected = true; 199control.Rows[1].Selected = false; 200control.Rows[2].Selected = true; 219control.Rows[0].Selected = true; 220control.Rows[1].Selected = false; 221control.Rows[2].Selected = true; 225Assert.Equal(control.Rows[2], iList[0]); 226Assert.Equal(control.Rows[0], iList[1]); 251control.Rows[0].Selected = true; 252control.Rows[1].Selected = false; 253control.Rows[2].Selected = true; 322control.Rows[0].Selected = true; 323control.Rows[1].Selected = false; 324control.Rows[2].Selected = true; 330Assert.Equal([1, control.Rows[2], control.Rows[0]], array); 358control.Rows[0].Selected = true; 359control.Rows[1].Selected = false; 360control.Rows[2].Selected = true; 364Assert.True(iList.Contains(control.Rows[0])); 365Assert.False(iList.Contains(control.Rows[1])); 366Assert.True(iList.Contains(control.Rows[2])); 398control.Rows[0].Selected = true; 399control.Rows[1].Selected = false; 400control.Rows[2].Selected = true; 410Assert.Same(control.Rows[2], enumerator.Current); 413Assert.Same(control.Rows[0], enumerator.Current); 448control.Rows[0].Selected = true; 449control.Rows[1].Selected = false; 450control.Rows[2].Selected = true; 454Assert.Equal(1, iList.IndexOf(control.Rows[0])); 455Assert.Equal(-1, iList.IndexOf(control.Rows[1])); 456Assert.Equal(0, iList.IndexOf(control.Rows[2]));
System\Windows\Forms\DataGridViewTests.cs (40)
2354dataGridView.Rows.Add("DefaultCellStyle", customFont1.ToString()); 2355dataGridView.Rows.Add("ColumnHeadersDefaultCellStyle", customFont2.ToString()); 2356dataGridView.Rows.Add("RowHeadersDefaultCellStyle", customFont3.ToString()); 2815Assert.Equal(rowsCount + 1, control.Rows.Count); 2821Assert.Empty(control.Rows); 2855Assert.Equal(rowsCount1 + 1, control.Rows.Count); // + 1 is the new DGV row 2861Assert.Equal(rowsCount2 + 1, control.Rows.Count); // + 1 is the new DGV row 2869Assert.Equal(rowsCount2 + 1, control.Rows.Count); // + 1 is the new DGV row 3389_dataGridView.Rows.Add(); 3390_dataGridView.Rows.Add(); 3413_dataGridView.Rows.Add(); 3414_dataGridView.Rows.Add(); 3441_dataGridView.Rows.Add(); 3442_dataGridView.Rows.Add(); 3446_dataGridView.Rows[0].Selected = true; 3451_dataGridView.Rows[1].Selected = true; 3467_dataGridView.Rows.Add("B"); 3468_dataGridView.Rows.Add("A"); 3607dataGridView.Rows.Add("A"); 3608dataGridView.Rows.Add("B"); 3633_dataGridView.Rows.Add("A"); 3634_dataGridView.Rows.Add("B"); 3661_dataGridView.Rows.Add("A"); 3662_dataGridView.Rows.Add("B"); 3686dataGridView.Rows.Add("A"); 3687dataGridView.Rows.Add("B"); 3690DataGridViewCellFormattingEventArgs cellFormattingEventArgs = new(0, 0, dataGridView.Rows[0].Cells[0].Value, dataGridView.Rows[0].Cells[0].ValueType, dataGridView.Rows[0].Cells[0].InheritedStyle); 3695cellFormattingEventArgs = new(0, 1, dataGridView.Rows[1].Cells[0].Value, dataGridView.Rows[1].Cells[0].ValueType, dataGridView.Rows[1].Cells[0].InheritedStyle); 3713dataGridView.Rows.Add("A"); 3714dataGridView.Rows.Add("B"); 3740dataGridView.Rows.Add("A"); 3741dataGridView.Rows.Add("B"); 3767dataGridView.Rows.Add("A"); 3768dataGridView.Rows.Add("B"); 4066_dataGridView.CurrentCell = _dataGridView.Rows[_dataGridView.NewRowIndex].Cells[0]; 4070_dataGridView.CurrentCell = _dataGridView.Rows[_dataGridView.NewRowIndex].Cells[1];
System\Windows\Forms\DataGridViewTests.Rendering.cs (5)
145dataGridView.Rows.Add(nameof(DataGridView.DefaultCellStyle), customCellStyleFont.ToString()); 146dataGridView.Rows.Add(nameof(DataGridView.ColumnHeadersDefaultCellStyle), customColumnHeaderFont.ToString()); 147dataGridView.Rows.Add(nameof(DataGridView.RowHeadersDefaultCellStyle), customRowHeaderFont.ToString()); 148for (int i = 0; i < dataGridView.Rows.Count; i++) 150dataGridView.Rows[i].HeaderCell.Value = $"Row {i + 1}";
System\Windows\Forms\DataGridViewTextBoxColumnTests.cs (6)
63_dataGridView.Rows.Add(); 64_dataGridView.Rows.Add(); 68foreach (DataGridViewRow row in _dataGridView.Rows) 77_dataGridView.Rows.Add(); 78_dataGridView.Rows.Add(); 82foreach (DataGridViewRow row in _dataGridView.Rows)
System.Windows.Forms.UI.IntegrationTests (1)
DataGridViewTests.cs (1)
77dataGridView.CurrentCell = dataGridView.Rows[0].Cells[1];
TestPassApp (2)
DataControls.cs (2)
35dataGridView1.Rows[0].Cells[0].Value = "Rose"; 36dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[0];
WinFormsControlsTest (11)
DataGridViewInVirtualModeTest.cs (3)
123_rowInEdit = dataGridView1.Rows.Count - 1; 130if (e.RowIndex >= _customers.Count && e.RowIndex != dataGridView1.Rows.Count - 1) 163if (_rowInEdit == dataGridView1.Rows.Count - 2 && _rowInEdit == _customers.Count)
DataGridViewTest.cs (8)
26dataGridView1.Rows.Add(new DataGridViewRow() { Visible = false }); 27dataGridView1.Rows.Add("DefaultCellStyle", dataGridView1.DefaultCellStyle.Font.ToString()); 28dataGridView1.Rows.Add("ColumnHeadersDefaultCellStyle", dataGridView1.ColumnHeadersDefaultCellStyle.Font.ToString()); 29dataGridView1.Rows.Add("RowHeadersDefaultCellStyle", dataGridView1.RowHeadersDefaultCellStyle.Font.ToString()); 33foreach (DataGridViewRow row in dataGridView1.Rows) 75dataGridView1.Rows[0].Cells[1].Value = s_fonts[_cellFontIndex]; 78dataGridView1.Rows[1].Cells[1].Value = s_fonts[_columnHeaderFontIndex]; 81dataGridView1.Rows[2].Cells[1].Value = s_fonts[_rowHeaderFontIndex];