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