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