919 references to Cells
PresentationUI (18)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (18)
89bool allowed = (bool)row.Cells[col].Value; 268DataGridViewCell cell = row.Cells[RightsTableColumnToIndex(RightsTableColumn.User)]; 385row.Cells.Add(nameCell); 388row.Cells.Add(CreateCheckBoxCell(false, newUser.allowView || isViewerOwner)); 391row.Cells.Add(CreateCheckBoxCell( 395row.Cells.Add(CreateCheckBoxCell( 399row.Cells.Add(CreateCheckBoxCell( 403row.Cells.Add(CreateCheckBoxCell( 503DataGridViewDisableCheckBoxCell cell = Rows[e.RowIndex].Cells[e.ColumnIndex] as DataGridViewDisableCheckBoxCell; 648bool isEveryoneOwner = (bool)everyoneRow.Cells[ownerColumnIndex].Value; 649bool isTargetOwner = (bool)targetRow.Cells[ownerColumnIndex].Value; 661targetRow.Cells[ownerColumnIndex] as DataGridViewDisableCheckBoxCell; 686everyoneRow.Cells[column] as DataGridViewDisableCheckBoxCell; 693targetRow.Cells[column] as DataGridViewDisableCheckBoxCell; 735everyoneRow.Cells[column] as DataGridViewDisableCheckBoxCell; 763row.Cells[RightsTableColumnToIndex(RightsTableColumn.AllowOwner)] 800everyoneRow.Cells[i] as DataGridViewDisableCheckBoxCell; 808cell = row.Cells[i] as DataGridViewDisableCheckBoxCell;
System.Windows.Forms (188)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (2)
166return owner.Rows[hti.RowIndex].Cells[hti.ColumnIndex].AccessibilityObject; 323return owner.Rows[row].Cells[column].AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (9)
1716return dataGridViewRow.Cells[_ptCurrentCell.X]; 1785DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[_ptCurrentCell.X]; 2288return Rows[firstDisplayedCellAddress.Y].Cells[firstDisplayedCellAddress.X]; // un-shares the row of first displayed cell 3649stcc.Add(dataGridViewRow.Cells[columnIndex]); 3667foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 4014return row.Cells[columnIndex]; 4019row.Cells[columnIndex] = value; 4030return row.Cells[columnName]; 4035row.Cells[columnName] = value;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (86)
315int preferredThickness = dataGridViewRow.Cells[dataGridViewColumn.Index].GetPreferredWidth( 380dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 458dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 1414if (!dataGridViewRow.Cells[dataGridViewColumn.Index].Selected) 1449if (!dataGridViewRow.Cells[dataGridViewColumn.Index].Selected) 1487if (!dataGridViewRow.Cells[dataGridViewColumn.Index].Selected) 4184int cellsInCollection = dataGridViewRow.Cells.Count; 4201dataGridViewRow.Cells.AddRange(cells); 6909DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 6926foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 6956foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 7108return columnIndex >= 0 ? dataGridViewRow.Cells[columnIndex] : dataGridViewRow.HeaderCell; 7301.Cells[dataGridViewColumn.Index] 7319.Cells[dataGridViewColumn.Index] 7375.Cells[dataGridViewColumn.Index] 7393.Cells[dataGridViewColumn.Index] 7596.Cells[dataGridViewColumn.Index] 7614.Cells[dataGridViewColumn.Index] 7674.Cells[dataGridViewColumn.Index] 7692.Cells[dataGridViewColumn.Index] 8042.Cells[dataGridViewColumn.Index] 8112.Cells[dataGridViewColumn.Index] 9694dataGridViewCell = Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; // un-share the edited cell 10597foreach (DataGridViewCell dataGridViewCell in dataGridViewRowDebug.Cells) 10608foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 10807if (dataGridViewRow.Cells.Count < newColumnCount) 10810dataGridViewRow.Cells.AddInternal(dataGridViewCellNew); 10829if (dataGridViewRow.Cells.Count == newColumnCount) 10831dataGridViewRow.Cells.RemoveAtInternal(newColumnCount - 1); 10835Debug.Assert(dataGridViewRow.Cells.Count < newColumnCount); 10959if (dataGridViewRow.Cells.Count < previousColumnCount + addedColumnCount) 10962int indexCell = dataGridViewRow.Cells.AddInternal(dataGridViewCellNew); 10980while (dataGridViewRow.Cells.Count > previousColumnCount) 10982dataGridViewRow.Cells.RemoveAtInternal(dataGridViewRow.Cells.Count - 1); 11016DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 11051if (dataGridViewRow.Cells.Count > Columns.Count) 11733dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 11821dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 12129&& IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row) 12284&& (Columns[hti._col].Selected || IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row)) 12490|| IsSharedCellSelected(Rows.SharedRow(hti._row).Cells[hti._col], hti._row)) 13057dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 13103dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 15442if (dataGridViewRow.Cells.Count < newColumnCount) 15445dataGridViewRow.Cells.InsertInternal(columnIndexInserted, dataGridViewCellNew); 15463if (dataGridViewRow.Cells.Count == newColumnCount) 15465dataGridViewRow.Cells.RemoveAtInternal(columnIndexInserted); 15469Debug.Assert(dataGridViewRow.Cells.Count < newColumnCount); 16861&& !Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X].ReadOnly) // Un-shares the row 17113if (dataGridViewRow.Cells.Count > newColumnCount) 17115KeyboardToolTipStateMachine.Instance.Unhook(dataGridViewRow.Cells[columnIndex], KeyboardToolTip); 17116dataGridViewRow.Cells.RemoveAtInternal(columnIndex); 17241foreach (DataGridViewCell cell in Rows[rowIndexDeleted].Cells) 17374DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 17418DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[columnIndex]; 17726dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 18333dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 18734dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 18780dataGridViewCell = Rows.SharedRow(rowIndex).Cells[columnIndex]; 19770DataGridViewCellCollection newRowCells = newRow.Cells; 19776newRowCells = newRow.Cells; 25363dataGridViewCurrentCell = Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; 25388dataGridViewCurrentCell = Rows[_ptCurrentCell.Y].Cells[_ptCurrentCell.X]; 25607foreach (DataGridViewCell cell in row.Cells) 26666return Rows.SharedRow(index).Cells[columnIndex]; 26693return Rows.SharedRow(rowIndex).Cells[index]; 26763&& !IsSharedCellVisible(Rows.SharedRow(rowIndex).Cells[columnIndex], rowIndex)) 26825currentCell = Rows.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX]; 26829currentCell = Rows[oldCurrentCellY].Cells[oldCurrentCellX]; 26940currentCell = Rows[rowIndex].Cells[columnIndex]; 27038currentCell = Rows.SharedRow(oldCurrentCellY).Cells[oldCurrentCellX]; 27042currentCell = Rows[oldCurrentCellY].Cells[oldCurrentCellX]; 27473if (IsSharedCellReadOnly(dataGridViewRow.Cells[columnIndex], rowIndex) != readOnly) 27475DataGridViewCell dataGridViewCell = Rows[rowIndex].Cells[columnIndex]; 27499dataGridViewCellTmp = Rows[row].Cells[columnIndex]; 27506dataGridViewCellTmp = Rows[row].Cells[columnIndex]; 27517dataGridViewCellTmp = Rows[rowIndex].Cells[column]; 27524dataGridViewCellTmp = Rows[rowIndex].Cells[column]; 27623if (IsSharedCellSelected(dataGridViewRow.Cells[columnIndex], rowIndex) != selected) 27625DataGridViewCell dataGridViewCell = Rows[rowIndex].Cells[columnIndex]; 27662dataGridViewCellTmp = Rows[row].Cells[columnIndex]; 27669dataGridViewCellTmp = Rows[row].Cells[columnIndex]; 27697dataGridViewCellTmp = Rows[rowIndex].Cells[column]; 27704dataGridViewCellTmp = Rows[rowIndex].Cells[column]; 29977dataGridViewCell = Rows.SharedRow(hti._row).Cells[hti._col];
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
436foreach (DataGridViewCell? dataGridViewCell in ((DataGridViewRow)this).Cells)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (3)
87if (dataGridViewRow.Cells[Index] is DataGridViewButtonCell dataGridViewCell) 130if (dataGridViewRow.Cells[Index] is DataGridViewButtonCell dataGridViewCell && dataGridViewCell.UseColumnTextForButtonValue) 175if (dataGridViewRow.Cells[Index] is DataGridViewButtonCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
321|| string.IsNullOrEmpty(DataGridView.Rows[i].Cells[j].Value?.ToString())) 326_nonEmptyNeighbors.Add(DataGridView.Rows[i].Cells[j].AccessibilityObject.Bounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (4)
475return _owner.DataGridView.Rows[previousVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject; 486return _owner.DataGridView.Rows[nextVisibleRow].Cells[_owner.OwningColumn.Index].AccessibilityObject; 527return _owner.OwningRow.Cells[previousVisibleColumnIndex].AccessibilityObject; 560return _owner.OwningRow.Cells[nextVisibleColumnIndex].AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (5)
91if (dataGridViewRow.Cells[Index] is DataGridViewCheckBoxCell dataGridViewCell) 134if (dataGridViewRow.Cells[Index] is DataGridViewCheckBoxCell dataGridViewCell) 178if (dataGridViewRow.Cells[Index] is DataGridViewCheckBoxCell dataGridViewCell) 218if (dataGridViewRow.Cells[Index] is DataGridViewCheckBoxCell dataGridViewCell) 272if (dataGridViewRow.Cells[Index] is DataGridViewCheckBoxCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (6)
958preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness); 962preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredSize(rowIndex).Width; 982preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness); 986preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredSize(rowIndex).Width; 1007preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness); 1011preferredCellThickness = dataGridViewRow.Cells[Index].GetPreferredSize(rowIndex).Width;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
1069row.Cells[index].ReleaseUiaProvider();
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (11)
57if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 120if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 166if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 209if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 253if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 297if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 338if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 401if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 444if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 485if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell) 528if (dataGridViewRow.Cells[Index] is DataGridViewComboBoxCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
98if (dataGridViewRow.Cells[Index] is DataGridViewImageCell dataGridViewCell) 172if (dataGridViewRow.Cells[Index] is DataGridViewImageCell dataGridViewCell) 212if (dataGridViewRow.Cells[Index] is DataGridViewImageCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (7)
56if (dataGridViewRow.Cells[Index] is DataGridViewLinkCell dataGridViewCell) 125if (dataGridViewRow.Cells[Index] is DataGridViewLinkCell dataGridViewCell) 167if (dataGridViewRow.Cells[Index] is DataGridViewLinkCell dataGridViewCell) 217if (dataGridViewRow.Cells[Index] is DataGridViewLinkCell dataGridViewCell && dataGridViewCell.UseColumnTextForLinkValue) 262if (dataGridViewRow.Cells[Index] is DataGridViewLinkCell dataGridViewCell) 305if (dataGridViewRow.Cells[Index] is DataGridViewLinkCell dataGridViewCell) 347if (dataGridViewRow.Cells[Index] is DataGridViewLinkCell dataGridViewCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (11)
1077int cellsCount = rowTemplate.Cells.Count; 1083DataGridViewCell dataGridViewCell = rowTemplate.Cells[i]; 1088Cells.AddRange(cells); 1106DataGridViewCellCollection cells = Cells; 1129Debug.Assert(Cells.Count == dataGridView.Columns.Count); 1154foreach (DataGridViewCell dataGridViewCell in Cells) 1312foreach (DataGridViewCell dataGridViewCell in Cells) 1520cell = Cells[dataGridViewColumn.Index]; 1610cell = Cells[dataGridViewColumn.Index]; 1757foreach (DataGridViewCell dataGridViewCellTmp in Cells) 1796DataGridViewCellCollection cells = Cells;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (6)
180for (int i = 0; i < _owningDataGridViewRow.Cells.Count; i++) 182if (!_owningDataGridViewRow.Cells[i].Selected) 277return _owningDataGridViewRow.Cells[columnIndex].AccessibilityObject; 417if (_owningDataGridViewRow.Cells.Count > 0) 421dataGridView.CurrentCell = _owningDataGridViewRow.Cells[dataGridView.CurrentCell.OwningColumn.Index]; // Do not change old selection 428dataGridView.CurrentCell = _owningDataGridViewRow.Cells[firstVisibleCell]; // Do not change old selection
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (29)
143foreach (DataGridViewCell dataGridViewCell in newDataGridViewRow.Cells) 199if (DataGridView.RowTemplate.Cells.Count > DataGridView.Columns.Count) 205Debug.Assert(dataGridViewRow.Cells.Count == DataGridView.Columns.Count); 213foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 238foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 343if (DataGridView.RowTemplate.Cells.Count > DataGridView.Columns.Count) 349Debug.Assert(rowTemplate.Cells.Count == DataGridView.Columns.Count); 354foreach (DataGridViewCell dataGridViewCell in rowTemplate.Cells) 396if (dataGridViewRow.Cells.Count > DataGridView.Columns.Count) 416Debug.Assert(dataGridViewRow.Cells.Count == DataGridView.Columns.Count); 420foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 676DataGridViewCellCollection dgvcc = dataGridViewRow.Cells; 748Debug.Assert(dataGridViewRow.Cells.Count == DataGridView.Columns.Count); 750foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 1417if (DataGridView.RowTemplate.Cells.Count > DataGridView.Columns.Count) 1430Debug.Assert(rowTemplate.Cells.Count == DataGridView.Columns.Count); 1435foreach (DataGridViewCell dataGridViewCell in rowTemplate.Cells) 1479if (dataGridViewRow.Cells.Count > DataGridView.Columns.Count) 1511if (dataGridViewRow.Cells.Count > DataGridView.Columns.Count) 1518Debug.Assert(dataGridViewRow.Cells.Count == DataGridView.Columns.Count); 1522foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 1715DataGridViewCellCollection dgvcc = dataGridViewRow.Cells; 1794Debug.Assert(dataGridViewRow.Cells.Count == DataGridView.Columns.Count); 1796foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.Cells) 2181foreach (DataGridViewCell cell in row.Cells) 2245DataGridViewCellCollection cells = dataGridViewRow.Cells; 2270DataGridViewCellCollection cells = dataGridViewRow.Cells; 2405DataGridViewCell dataGridViewCell1 = dataGridViewRow1.Cells[columnIndex]; 2406DataGridViewCell dataGridViewCell2 = dataGridViewRow2.Cells[columnIndex];
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.RowComparer.cs (1)
55return dataGridViewRow.Cells[_sortedColumnIndex].GetValueInternal(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
68if (dataGridViewRow.Cells[Index] is DataGridViewTextBoxCell dataGridViewCell)
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (7)
52row.Cells.Add(new DialogDataGridViewCell()); 53row.Cells[0].Value = "####"; 54row.Cells[0].AccessibilityObject.Name = SR.CellStyleBuilderSelectedPreviewAccName; 62row.Cells.Add(new DialogDataGridViewCell()); 63row.Cells[0].Value = "####"; 64row.Cells[0].AccessibilityObject.Name = SR.CellStyleBuilderNormalPreviewAccName; 320Debug.Assert(e.Cell == _sampleDataGridView.Rows[0].Cells[0], "the sample data grid view has only one cell");
System.Windows.Forms.Tests (700)
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (1)
34DataGridViewCell cell = dataGridView.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (24)
209DataGridViewCell cell = dataGridView.Rows[0].Cells[0]; 232for (int j = 0; j < dataGridView.Rows[i].Cells.Count; j++) 234AccessibleObject expected = dataGridView.Rows[i].Cells[j].AccessibilityObject; 330VARIANT isOffscreen = dataGridView.Rows[1].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId); 336isOffscreen = dataGridView.Rows[4].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId); 385dataGridView.Rows[0].Cells[0].ReadOnly = isReadOnly; 393foreach (DataGridViewCell cell in row.Cells) 418foreach (DataGridViewCell cell in row.Cells) 443foreach (DataGridViewCell cell in row.Cells) 1322: dataGridView.Rows[i + 1].Cells[j + 1].AccessibilityObject; 1349AccessibleObject expected = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1353expected = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1359expected = dataGridView.Rows[2].Cells[0].AccessibilityObject; 1363expected = dataGridView.Rows[2].Cells[2].AccessibilityObject; 1396: dataGridView.Rows[i].Cells[j].AccessibilityObject; 1417AccessibleObject accessibleObjectCell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1418AccessibleObject accessibleObjectCell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1419AccessibleObject accessibleObjectCell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1440AccessibleObject accessibleObjectCell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1441AccessibleObject accessibleObjectCell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1462AccessibleObject accessibleObjectCell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1463AccessibleObject accessibleObjectCell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1484AccessibleObject accessibleObjectCell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1485AccessibleObject accessibleObjectCell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (98)
55accCellWidthSum += dataGridView.Rows[0].Cells[i].AccessibilityObject.BoundingRectangle.Width; 86accCellWidthSum += dataGridView.Rows[0].Cells[i].AccessibilityObject.BoundingRectangle.Width; 110row.Cells.Add(cell); 140row.Cells.Add(cell); 237AccessibleObject accessibleObject = dataGridView.Rows[2].Cells[0].AccessibilityObject; 256AccessibleObject accessibleObject = dataGridView.Rows[2].Cells[0].AccessibilityObject; 276AccessibleObject accessibleObject = dataGridView.Rows[2].Cells[0].AccessibilityObject; 317row.Cells.Add(cell); 431row.Cells.Add(cell); 650dataGridView.Rows[0].Cells[0].ReadOnly = true; 656foreach (DataGridViewCell cell in row.Cells) 683DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.Rows[0].Cells[0]); 698DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.Rows[0].Cells[0]); 713DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.Rows[0].Cells[0]); 742DataGridViewCellAccessibleObject accessibleObject = new(dataGridView.Rows[0].Cells[0]); 777AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 778AccessibleObject accessibleObject2 = dataGridView.Rows[1].Cells[0].AccessibilityObject; 779AccessibleObject accessibleObject3 = dataGridView.Rows[2].Cells[0].AccessibilityObject; 797AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 798AccessibleObject accessibleObject2 = dataGridView.Rows[1].Cells[0].AccessibilityObject; 799AccessibleObject accessibleObject3 = dataGridView.Rows[2].Cells[0].AccessibilityObject; 817AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 818AccessibleObject accessibleObject2 = dataGridView.Rows[1].Cells[0].AccessibilityObject; 819AccessibleObject accessibleObject3 = dataGridView.Rows[2].Cells[0].AccessibilityObject; 837AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 838AccessibleObject accessibleObject2 = dataGridView.Rows[1].Cells[0].AccessibilityObject; 839AccessibleObject accessibleObject3 = dataGridView.Rows[2].Cells[0].AccessibilityObject; 875AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 876AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 877AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 895AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 896AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 897AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 915AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 916AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 917AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 935AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 936AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 937AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 957AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 958AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 959AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 980AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 981AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 982AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1003AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1004AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1005AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1026AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1027AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1028AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1043DataGridViewCellAccessibleObject dataGridViewCellAccessibleObject = new(dataGridView.Rows[0].Cells[0]); 1058AccessibleObject accessibleObject = row.Cells[0].AccessibilityObject; 1088AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1089AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1090AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1107AccessibleObject cell1 = row.Cells[0].AccessibilityObject; 1108AccessibleObject cell2 = row.Cells[1].AccessibilityObject; 1125AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1126AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1127AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1145AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1146AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1164AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1165AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1183AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1184AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1202AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1203AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1204AccessibleObject cell4 = dataGridView.Rows[0].Cells[3].AccessibilityObject; 1222AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1223AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1224AccessibleObject cell4 = dataGridView.Rows[0].Cells[3].AccessibilityObject; 1242AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1243AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1244AccessibleObject cell3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1264AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1265AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1266AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1289AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1290AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1311AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1312AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1333AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1334AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1354AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1355AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1356AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1377AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1378AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1397AccessibleObject cell1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1398AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1417AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1418AccessibleObject cell3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1434AccessibleObject cell1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1435AccessibleObject cell2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1452AccessibleObject cell = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1485Assert.Equal($"{string.Format(SR.DataGridView_AccRowName, expectedIndex)}, Not sorted.", dataGridView.Rows[0].Cells[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (15)
33var cell = control.Rows[0].Cells[0]; 77var cell = control.Rows[0].Cells[0]; 116row.Cells.Add(cell); 136var cell = control.Rows[0].Cells[0]; 160var cell = control.Rows[0].Cells[0]; 215var cell = control.Rows[0].Cells[0]; 259DataGridViewCell cell = dataGridView.Rows[0].Cells[0]; 276Assert.Equal(ToggleState.ToggleState_On, dataGridView.Rows[1].Cells[0].AccessibilityObject.ToggleState); 279Assert.Equal(ToggleState.ToggleState_Off, dataGridView.Rows[2].Cells[0].AccessibilityObject.ToggleState); 282Assert.Equal(ToggleState.ToggleState_Indeterminate, dataGridView.Rows[3].Cells[0].AccessibilityObject.ToggleState); 285Assert.Equal(ToggleState.ToggleState_On, dataGridView.Rows[4].Cells[0].AccessibilityObject.ToggleState); 288Assert.Equal(ToggleState.ToggleState_Off, dataGridView.Rows[5].Cells[0].AccessibilityObject.ToggleState); 295Assert.Equal(ToggleState.ToggleState_On, dataGridView.Rows[4].Cells[0].AccessibilityObject.ToggleState); 298Assert.Equal(ToggleState.ToggleState_Off, dataGridView.Rows[5].Cells[0].AccessibilityObject.ToggleState); 301Assert.Equal(ToggleState.ToggleState_Indeterminate, dataGridView.Rows[3].Cells[0].AccessibilityObject.ToggleState);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxCellAccessibleObjectTests.cs (4)
31dataGridView.CurrentCell = dataGridView.Rows[0].Cells[0]; 38bool actualPropertyValue = (bool)dataGridView.Rows[0].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsExpandCollapsePatternAvailablePropertyId); 65dataGridView.CurrentCell = dataGridView.Rows[0].Cells[0]; 72int actualPropertyValue = (int)dataGridView.Rows[0].Cells[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (1)
123control.CurrentCell = control.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (79)
1236AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1237AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1254AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1255AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1272AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1273AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1309AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1327AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1345AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1383AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1384AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1404AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1405AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1425AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1426AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1446AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1447AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1467AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1488AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1509AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1530AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1561AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1562AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1579AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1580AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1597AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1598AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1634AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1652AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1670AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1708AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1709AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1729AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1730AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1750AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1751AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1771AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1772AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1792AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1813AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1834AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1855AccessibleObject accessibleObject = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1890AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1891AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1892AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1911AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1912AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1930AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1931AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 1949AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1950AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1968AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 1969AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 1970AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2011AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2012AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2032AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2033AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2053AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2054AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2075AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2076AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2077AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2099AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2100AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2121AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2122AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2143AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2144AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2165AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2166AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2167AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2191AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2192AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2215AccessibleObject accessibleObject1 = dataGridView.Rows[0].Cells[2].AccessibilityObject; 2216AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2239AccessibleObject accessibleObject2 = dataGridView.Rows[0].Cells[1].AccessibilityObject; 2240AccessibleObject accessibleObject3 = dataGridView.Rows[0].Cells[0].AccessibilityObject; 2384dataGridView.Rows[0].Cells[0].Value = "test1";
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (4)
170AccessibleObject expected = row.Cells[0].AccessibilityObject; 187AccessibleObject expected = row.Cells[1].AccessibilityObject; 205AccessibleObject expected = row.Cells[1].AccessibilityObject; 224AccessibleObject expected = row.Cells[0].AccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (6)
82DataGridViewCell currentCell = control.Rows[0].Cells[0]; 100DataGridViewCell currentCell = control.Rows[0].Cells[0]; 125control.Rows[0].Cells[i].Selected = true; 144DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0]; 181DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0]; 201DataGridViewCell selecetedCell1 = control.Rows[0].Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (6)
85DataGridViewCell currentCell = control.Rows[0].Cells[0]; 103DataGridViewCell currentCell = control.Rows[0].Cells[0]; 129row.Cells[i].Selected = true; 150DataGridViewCell selecetedCell1 = row.Cells[0]; 189DataGridViewCell selecetedCell1 = row.Cells[0]; 210DataGridViewCell selecetedCell1 = row.Cells[0];
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
147control.CurrentCell = control.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewButtonCellTests.cs (6)
207dataGridView.Rows[0].Cells[0].Value = "Test"; 208dataGridView.Rows[0].Cells[0].Style.Font = SystemFonts.DefaultFont; 209dataGridView.Rows[0].Cells[0].Style.Alignment = DataGridViewContentAlignment.MiddleCenter; 210dataGridView.Rows[0].Cells[0].Style.Padding = Padding.Empty; 211dataGridView.Rows[0].Cells[0].Style.WrapMode = DataGridViewTriState.False; 217g, dataGridView.Rows[0].Cells[0].Style, 0, Size.Empty);
System\Windows\Forms\DataGridViewButtonColumnTests.cs (6)
46row.Cells.Add(new DataGridViewButtonCell()); 50((DataGridViewButtonCell)row.Cells[0]).FlatStyle.Should().Be(FlatStyle.Flat); 53((DataGridViewButtonCell)row.Cells[0]).FlatStyle.Should().Be(FlatStyle.Popup); 90row.Cells.Add(cell); 93((DataGridViewButtonCell)row.Cells[0]).UseColumnTextForButtonValue.Should().BeFalse(); 96((DataGridViewButtonCell)row.Cells[0]).UseColumnTextForButtonValue.Should().BeTrue();
System\Windows\Forms\DataGridViewCellErrorTextNeededEventArgsTests.cs (1)
19DataGridViewCell cell = dataGridView.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewCellTests.ClipboardTests.cs (5)
36row.Cells.Add(cell); 67SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 82SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 111SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 129SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0];
System\Windows\Forms\DataGridViewCellTests.cs (206)
67row.Cells.Add(cell); 90SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 104SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 123row.Cells.Add(cell); 150DataGridViewCell cell = control.Rows[0].Cells[0]; 168DataGridViewCell cell = control.Rows[0].Cells[0]; 205DataGridViewCell cell = control.Rows[0].Cells[0]; 249row.Cells.Add(cell); 286DataGridViewCell cell = control.Rows[0].Cells[0]; 308DataGridViewCell cell = control.Rows[0].Cells[0]; 400row.Cells.Add(cell); 444DataGridViewCell cell = row.Cells[0]; 486DataGridViewCell cell = row.Cells[0]; 519DataGridViewCell cell = row.Cells[0]; 580DataGridViewCell cell = row.Cells[0]; 622row.Cells.Add(cell); 645DataGridViewCell cell = control.Rows[0].Cells[0]; 660DataGridViewCell cell = control.Rows[0].Cells[0]; 676DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 690SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 706row.Cells.Add(cell); 729SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 738row.Cells.Add(cell); 761DataGridViewCell cell = control.Rows[0].Cells[0]; 775DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 788DataGridViewCell cell = control.Rows[0].Cells[0]; 820DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 849DataGridViewCell cell = control.Rows[0].Cells[0]; 885DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 939row.Cells.Add(cell); 958row.Cells.Add(cell); 1014DataGridViewCell cell = control.Rows[0].Cells[0]; 1041DataGridViewCell cell = control.Rows[0].Cells[0]; 1069DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1096DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1126DataGridViewCell cell = control.Rows[0].Cells[0]; 1169DataGridViewCell cell = control.Rows[0].Cells[0]; 1209DataGridViewCell cell = control.Rows[0].Cells[0]; 1270row.Cells.Add(cell); 1293DataGridViewCell cell = control.Rows[0].Cells[0]; 1308DataGridViewCell cell = control.Rows[0].Cells[0]; 1324DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1351row.Cells.Add(cell); 1385DataGridViewCell cell = row.Cells[0]; 1403DataGridViewCell cell = row.Cells[0]; 1413row.Cells.Add(cell); 1431row.Cells.Add(cell); 1472DataGridViewCell cell = control.Rows[0].Cells[0]; 1490DataGridViewCell cell = row.Cells[0]; 1504DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1520row.Cells.Add(cell); 1538row.Cells.Add(cell); 1561DataGridViewCell cell = control.Rows[0].Cells[0]; 1575DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1602row.Cells.Add(cell); 1630DataGridViewCell cell = row.Cells[0]; 1654DataGridViewCell cell = row.Cells[0]; 1675row.Cells.Add(cell); 1707row.Cells.Add(cell); 1740row.Cells.Add(cell1); 1741row.Cells.Add(cell2); 1789DataGridViewCell cell = row.Cells[0]; 1835DataGridViewCell cell = row.Cells[0]; 1886DataGridViewCell cell1 = row.Cells[0]; 1887DataGridViewCell cell2 = row.Cells[1]; 1923DataGridViewCell cell = control.Rows[0].Cells[0]; 1968DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1998row.Cells.Add(cell); 2024DataGridViewCell cell = row.Cells[0]; 2042DataGridViewCell cell = row.Cells[0]; 2066row.Cells.Add(cell); 2087DataGridViewCell cell = row.Cells[0]; 2105DataGridViewCell cell = row.Cells[0]; 2126row.Cells.Add(cell); 2158DataGridViewCell cell = control.Rows[0].Cells[0]; 2189DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2206DataGridViewCell cell = control.Rows[0].Cells[0]; 2293row.Cells.Add(cell); 2318row.Cells.Add(cell); 2384DataGridViewCell cell = control.Rows[0].Cells[0]; 2411DataGridViewCell cell = control.Rows[0].Cells[0]; 2434DataGridViewCell cell = control.Rows[0].Cells[0]; 2535row.Cells.Add(cell); 2558DataGridViewCell cell = control.Rows[0].Cells[0]; 2572DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2613row.Cells.Add(cell); 2632row.Cells.Add(cell); 2688DataGridViewCell cell = control.Rows[0].Cells[0]; 2711DataGridViewCell cell = control.Rows[0].Cells[0]; 2735DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2758DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2776row.Cells.Add(cell); 2805DataGridViewCell cell = control.Rows[0].Cells[0]; 2851row.Cells.Add(cell); 2872row.Cells.Add(cell); 2941DataGridViewCell cell = control.Rows[0].Cells[0]; 2966DataGridViewCell cell = control.Rows[0].Cells[0]; 3004row.Cells.Add(cell); 3043DataGridViewCell cell = row.Cells[0]; 3062DataGridViewCell cell = row.Cells[0]; 3229row.Cells.Add(cell); 3260SubDataGridViewCell cell = (SubDataGridViewCell)row.Cells[0]; 3281SubDataGridViewCell cell = (SubDataGridViewCell)row.Cells[0]; 3297SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 3482SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3592row.Cells.Add(cell); 3619SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3633SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 3650SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3718row.Cells.Add(cell); 3746DataGridViewCell cell = control.Rows[0].Cells[0]; 3763DataGridViewCell cell = control.Rows[0].Cells[0]; 3781DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 3802SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3872row.Cells.Add(cell); 3916SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 3945SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 3971SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 4010SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4053SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 4096SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4132SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4160row.Cells.Add(cell); 4217row.Cells.Add(cell); 4234row.Cells.Add(cell); 4261DataGridViewCell cell = control.Rows[0].Cells[0]; 4284DataGridViewCell cell = control.Rows[0].Cells[0]; 4304DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4322DataGridViewCell cell = control.Rows[0].Cells[0]; 4359DataGridViewCell cell = control.Rows[0].Cells[0]; 4395DataGridViewCell cell = control.Rows[0].Cells[0]; 4412DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4428row.Cells.Add(cell); 4446row.Cells.Add(cell); 4461DataGridViewCell cell = control.Rows[0].Cells[0]; 4510DataGridViewCell cell = row.Cells[0]; 4532DataGridViewCell cell = control.Rows[0].Cells[0]; 4592DataGridViewCell cell = row.Cells[0]; 4614DataGridViewCell cell = row.Cells[0]; 4628DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4648row.Cells.Add(cell); 4676DataGridViewCell cell = control.Rows[0].Cells[0]; 4693DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 4716row.Cells.Add(cell); 4742DataGridViewCell cell = control.Rows[0].Cells[0]; 4757var cell = dataGridView.Rows[0].Cells[0]; 4801control.Rows[0].Cells[1].Value = "Text"; 4802control.Rows[1].Cells[2].Value = "Text"; 4803control.Rows[1].Cells[3].Value = "Text"; 4804control.Rows[2].Cells[0].Value = "Text"; 4805control.Rows[2].Cells[1].Value = "Text"; 4806control.Rows[2].Cells[3].Value = "Text"; 4807control.Rows[3].Cells[1].Value = "Text"; 4808control.Rows[3].Cells[2].Value = "Text"; 4810IList<Rectangle> neighbors00 = ((IKeyboardToolTip)control.Rows[0].Cells[0]).GetNeighboringToolsRectangles(); 4811Assert.True(neighbors00.Contains(control.Rows[0].Cells[1].AccessibilityObject.Bounds)); 4812Assert.False(neighbors00.Contains(control.Rows[1].Cells[1].AccessibilityObject.Bounds)); 4813Assert.False(neighbors00.Contains(control.Rows[1].Cells[0].AccessibilityObject.Bounds)); 4815IList<Rectangle> neighbors21 = ((IKeyboardToolTip)control.Rows[2].Cells[1]).GetNeighboringToolsRectangles(); 4816Assert.True(neighbors21.Contains(control.Rows[1].Cells[2].AccessibilityObject.Bounds)); 4817Assert.True(neighbors21.Contains(control.Rows[2].Cells[0].AccessibilityObject.Bounds)); 4818Assert.True(neighbors21.Contains(control.Rows[2].Cells[1].AccessibilityObject.Bounds)); 4819Assert.True(neighbors21.Contains(control.Rows[3].Cells[1].AccessibilityObject.Bounds)); 4820Assert.False(neighbors21.Contains(control.Rows[1].Cells[1].AccessibilityObject.Bounds)); 4822IList<Rectangle> neighbors33 = ((IKeyboardToolTip)control.Rows[3].Cells[3]).GetNeighboringToolsRectangles(); 4823Assert.True(neighbors33.Contains(control.Rows[2].Cells[3].AccessibilityObject.Bounds)); 4824Assert.True(neighbors33.Contains(control.Rows[3].Cells[2].AccessibilityObject.Bounds)); 4825Assert.False(neighbors33.Contains(control.Rows[2].Cells[2].AccessibilityObject.Bounds)); 4855row.Cells.Add(cell); 4875SubDataGridViewCell cell = (SubDataGridViewCell)row.Cells[0]; 4894SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4920SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 4934SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 4973row.Cells.Add(cell); 4990row.Cells.Add(cell); 5005SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5021SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5036SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5050SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5072SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5110SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5151SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5187SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5204SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5567SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 5604SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5641SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5668SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5695SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5822SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5849SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5876SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5913SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5950SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 5977SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 6004SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 6270row.Cells.Add(cell); 6309SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 6331SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 6365SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows[0].Cells[0]; 6382SubDataGridViewCell cell = (SubDataGridViewCell)control.Rows.SharedRow(0).Cells[0]; 6398row.Cells.Add(cell); 6421DataGridViewCell cell = control.Rows[0].Cells[0]; 6432DataGridViewImageCell cell = dataGridView.Rows[0].Cells[0].Should().BeOfType<DataGridViewImageCell>().Which; 6449SubDataGridViewCheckBoxCell cell = (SubDataGridViewCheckBoxCell)dataGridView.Rows[0].Cells[0]; 6520var cell = (SubDataGridViewCheckBoxCell)dataGridView.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewComboBoxColumnTests.cs (10)
50using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 80using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 108using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 135using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 163using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 191using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 218using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 259using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 286using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell; 315using DataGridViewComboBoxCell? cell = row.Cells[0] as DataGridViewComboBoxCell;
System\Windows\Forms\DataGridViewElementTests.cs (11)
63control.Rows[0].Cells[0] = element; 93control.Rows[0].Cells[0] = element; 115control.Rows[0].Cells[0] = element; 145control.Rows[0].Cells[0] = element; 167control.Rows[0].Cells[0] = element; 197control.Rows[0].Cells[0] = element; 219control.Rows[0].Cells[0] = element; 249control.Rows[0].Cells[0] = element; 291control.Rows[0].Cells[0] = element; 321control.Rows[0].Cells[0] = element; 343control.Rows[0].Cells[0] = element;
System\Windows\Forms\DataGridViewHeaderCellTests.cs (89)
62row.Cells.Add(cell); 132DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 253DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 294DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 432DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 471row.Cells.Add(cell); 505DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 541DataGridViewCell cell = Assert.IsType<DataGridViewHeaderCell>(row.Cells[0]); 569row.Cells.Add(cell); 630DataGridViewCell cell = row.Cells[0]; 714DataGridViewCell cell = row.Cells[0]; 733row.Cells.Add(cell); 772DataGridViewCell cell = control.Rows[0].Cells[0]; 842DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 872row.Cells.Add(cell); 942DataGridViewCell cell = row.Cells[0]; 1060DataGridViewCell cell = row.Cells[0]; 1084row.Cells.Add(cell); 1123DataGridViewCell cell = row.Cells[0]; 1199DataGridViewCell cell = row.Cells[0]; 1218row.Cells.Add(cell); 1259DataGridViewCell cell = control.Rows[0].Cells[0]; 1331DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 1343row.Cells.Add(cell); 1381DataGridViewCell cell = control.Rows[0].Cells[0]; 1482row.Cells.Add(cell); 1505row.Cells.Add(cell); 1615DataGridViewCell cell = control.Rows[0].Cells[0]; 1642DataGridViewCell cell = control.Rows[0].Cells[0]; 1847row.Cells.Add(cell); 1914DataGridViewCell cell = row.Cells[0]; 2012DataGridViewCell cell = row.Cells[0]; 2232row.Cells.Add(cell); 2249row.Cells.Add(cell); 2282DataGridViewCell cell = control.Rows[0].Cells[0]; 2305DataGridViewCell cell = control.Rows[0].Cells[0]; 2363DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 2381DataGridViewCell cell = control.Rows[0].Cells[0]; 2418DataGridViewCell cell = control.Rows[0].Cells[0]; 2453row.Cells.Add(cell); 2471row.Cells.Add(cell); 2513DataGridViewCell cell = control.Rows[0].Cells[0]; 2562DataGridViewCell cell = row.Cells[0]; 2729DataGridViewCell cell = control.Rows[0].Cells[0]; 2789DataGridViewCell cell = row.Cells[0]; 3004DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 3015row.Cells.Add(cell); 3054DataGridViewCell cell = control.Rows[0].Cells[0]; 3120DataGridViewCell cell = control.Rows.SharedRow(0).Cells[0]; 3129row.Cells.Add(cell); 3138row.Cells.Add(cell); 3178SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)row.Cells[0]; 3261SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3284row.Cells.Add(cell); 3325SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3342SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3369row.Cells.Add(cell); 3382row.Cells.Add(cell); 3449SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3465SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3570SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3584SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3606SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3644SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3685SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3726row.Cells.Add(cell); 3755SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3804SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows.SharedRow(0).Cells[0]; 3888SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3956SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 3995SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4037SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4078SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4185SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4211SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4228SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4268SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4296SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4336SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4364SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4396SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4426SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4483SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4509SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4567SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4594SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4611SubDataGridViewHeaderCell cell = (SubDataGridViewHeaderCell)control.Rows[0].Cells[0]; 4637row.Cells.Add(cell); 4660DataGridViewCell cell = control.Rows[0].Cells[0];
System\Windows\Forms\DataGridViewImageCellTests.cs (2)
235dataGridView.Rows[0].Cells[0] = dataGridViewImageCell; 263dataGridView.Rows[0].Cells[0] = dataGridViewImageCell;
System\Windows\Forms\DataGridViewImageColumnTests.cs (7)
54var cell = row.Cells[0] as DataGridViewImageCell; 64var cell = row.Cells[0] as DataGridViewImageCell; 84var cell = row.Cells[0] as DataGridViewImageCell; 151var cell = row.Cells[0] as DataGridViewImageCell; 186var cell = row.Cells[0] as DataGridViewImageCell; 198var cell = row.Cells[0] as DataGridViewImageCell; 221var cell = row.Cells[0] as DataGridViewImageCell;
System\Windows\Forms\DataGridViewLinkCellTests.cs (22)
36dataGridView.Rows[0].Cells[0] = _cell; 58dataGridView.Rows[0].Cells[0] = _cell; 120dataGridView.Rows[0].Cells[0] = _cell; 215dataGridView.Rows[0].Cells[0] = _cell; 216string result = dataGridView.Rows[0].Cells[0].ToString(); 275dataGridView.Rows[0].Cells[0] = _cell; 277Action action = () => dataGridView.Rows[0].Cells[0].GetContentBounds(-1); 294dataGridView.Rows[0].Cells[0] = _cell; 299ReferenceEquals(_cell, dataGridView.Rows[0].Cells[0]).Should().BeTrue(); 310dataGridView.Rows[0].Cells[0] = _cell; 321dataGridView.Rows[0].Cells[0] = _cell; 337dataGridView.Rows[0].Cells[0] = _cell; 354dataGridView.Rows[0].Cells[0] = _cell; 366dataGridView.Rows[0].Cells[0] = _cell; 383dataGridView.Rows[0].Cells[0] = _cell; 415dataGridView.Rows[0].Cells[0] = _cell; 428dataGridView.Rows[0].Cells[0] = _cell; 521dataGridView.Rows[0].Cells[0] = _cell; 549dataGridView.Rows[0].Cells[0] = _cell; 577dataGridView.Rows[0].Cells[0] = _cell; 626dataGridView.Rows[0].Cells[0] = _cell; 641dataGridView.Rows[0].Cells[0] = _cell;
System\Windows\Forms\DataGridViewLinkColumnTests.cs (6)
59((DataGridViewLinkCell)row.Cells[_column.Index]).ActiveLinkColor.Should().Be(color); 113((DataGridViewLinkCell)row.Cells[_column.Index]).LinkBehavior.Should().Be(behavior); 151((DataGridViewLinkCell)row.Cells[_column.Index]).LinkColor.Should().Be(color); 212((DataGridViewLinkCell)row.Cells[_column.Index]).TrackVisitedState.Should().Be(trackVisitedState); 250((DataGridViewLinkCell)row.Cells[_column.Index]).UseColumnTextForLinkValue.Should().Be(useColumnTextForLinkValue); 288((DataGridViewLinkCell)row.Cells[_column.Index]).VisitedLinkColor.Should().Be(color);
System\Windows\Forms\DataGridViewRowTests.cs (25)
18Assert.Same(row.Cells, row.Cells); 19Assert.Empty(row.Cells); 2622row.Cells.Add(cell1); 2623row.Cells.Add(cell2); 2654row.Cells[1].ReadOnly = true; 2659Assert.False(row.Cells[0].ReadOnly); 2660Assert.False(row.Cells[1].ReadOnly); 2665Assert.True(row.Cells[0].ReadOnly); 2666Assert.True(row.Cells[1].ReadOnly); 2671Assert.False(row.Cells[0].ReadOnly); 2672Assert.False(row.Cells[1].ReadOnly); 4060row.Cells.Add(cell); 4062Assert.Empty(row.Cells); 4074row.Cells.Add(cell); 4076Assert.Null(Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 4087row.Cells.Add(cell); 4089Assert.Empty(row.Cells); 4104row.Cells.Add(cell); 4106Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 5688row.Cells.Add(cell); 5690Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 5706Assert.Equal(expectedValue, Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value); 5713row.Cells.Add(new CantSetDataGridViewCell()); 5715Assert.Null(Assert.Single(row.Cells.Cast<DataGridViewCell>()).Value);
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (55)
32control.Rows[0].Cells[0].Selected = true; 33control.Rows[1].Cells[0].Selected = false; 34control.Rows[2].Cells[0].Selected = true; 52control.Rows[0].Cells[0].Selected = true; 53control.Rows[1].Cells[0].Selected = false; 54control.Rows[2].Cells[0].Selected = true; 57Assert.Equal(control.Rows[2].Cells[0], collection[0]); 58Assert.Equal(control.Rows[0].Cells[0], collection[1]); 83control.Rows[0].Cells[0].Selected = true; 84control.Rows[1].Cells[0].Selected = false; 85control.Rows[2].Cells[0].Selected = true; 108control.Rows[0].Cells[0].Selected = true; 109control.Rows[1].Cells[0].Selected = false; 110control.Rows[2].Cells[0].Selected = true; 113Assert.True(collection.Contains(control.Rows[0].Cells[0])); 114Assert.False(collection.Contains(control.Rows[1].Cells[0])); 115Assert.True(collection.Contains(control.Rows[2].Cells[0])); 154control.Rows[0].Cells[0].Selected = true; 155control.Rows[1].Cells[0].Selected = false; 156control.Rows[2].Cells[0].Selected = true; 161Assert.Equal([1, control.Rows[2].Cells[0], control.Rows[0].Cells[0]], array); 204control.Rows[0].Cells[0].Selected = true; 205control.Rows[1].Cells[0].Selected = false; 206control.Rows[2].Cells[0].Selected = true; 226control.Rows[0].Cells[0].Selected = true; 227control.Rows[1].Cells[0].Selected = false; 228control.Rows[2].Cells[0].Selected = true; 232Assert.Equal(control.Rows[2].Cells[0], iList[0]); 233Assert.Equal(control.Rows[0].Cells[0], iList[1]); 259control.Rows[0].Cells[0].Selected = true; 260control.Rows[1].Cells[0].Selected = false; 261control.Rows[2].Cells[0].Selected = true; 331control.Rows[0].Cells[0].Selected = true; 332control.Rows[1].Cells[0].Selected = false; 333control.Rows[2].Cells[0].Selected = true; 339Assert.Equal([1, control.Rows[2].Cells[0], control.Rows[0].Cells[0]], array); 368control.Rows[0].Cells[0].Selected = true; 369control.Rows[1].Cells[0].Selected = false; 370control.Rows[2].Cells[0].Selected = true; 374Assert.True(iList.Contains(control.Rows[0].Cells[0])); 375Assert.False(iList.Contains(control.Rows[1].Cells[0])); 376Assert.True(iList.Contains(control.Rows[2].Cells[0])); 409control.Rows[0].Cells[0].Selected = true; 410control.Rows[1].Cells[0].Selected = false; 411control.Rows[2].Cells[0].Selected = true; 421Assert.Same(control.Rows[2].Cells[0], enumerator.Current); 424Assert.Same(control.Rows[0].Cells[0], enumerator.Current); 460control.Rows[0].Cells[0].Selected = true; 461control.Rows[1].Cells[0].Selected = false; 462control.Rows[2].Cells[0].Selected = true; 466Assert.Equal(1, iList.IndexOf(control.Rows[0].Cells[0])); 467Assert.Equal(-1, iList.IndexOf(control.Rows[1].Cells[0])); 468Assert.Equal(0, iList.IndexOf(control.Rows[2].Cells[0]));
System\Windows\Forms\DataGridViewTests.cs (8)
3690DataGridViewCellFormattingEventArgs cellFormattingEventArgs = new(0, 0, dataGridView.Rows[0].Cells[0].Value, dataGridView.Rows[0].Cells[0].ValueType, dataGridView.Rows[0].Cells[0].InheritedStyle); 3695cellFormattingEventArgs = new(0, 1, dataGridView.Rows[1].Cells[0].Value, dataGridView.Rows[1].Cells[0].ValueType, dataGridView.Rows[1].Cells[0].InheritedStyle); 4066_dataGridView.CurrentCell = _dataGridView.Rows[_dataGridView.NewRowIndex].Cells[0]; 4070_dataGridView.CurrentCell = _dataGridView.Rows[_dataGridView.NewRowIndex].Cells[1];
System\Windows\Forms\DataGridViewTextBoxColumnTests.cs (2)
70((DataGridViewTextBoxCell)row.Cells[0]).MaxInputLength.Should().Be(100); 84((DataGridViewTextBoxCell)row.Cells[0]).MaxInputLength.Should().Be(32767);
System.Windows.Forms.UI.IntegrationTests (1)
DataGridViewTests.cs (1)
77dataGridView.CurrentCell = dataGridView.Rows[0].Cells[1];
TestPassApp (2)
DataControls.cs (2)
35dataGridView1.Rows[0].Cells[0].Value = "Rose"; 36dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[0];
WinFormsControlsTest (3)
DataGridViewTest.cs (3)
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];