212 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 (187)
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)
1721
return dataGridViewRow.
Cells
[_ptCurrentCell.X];
1790
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[_ptCurrentCell.X];
2293
return Rows[firstDisplayedCellAddress.Y].
Cells
[firstDisplayedCellAddress.X]; // un-shares the row of first displayed cell
3654
stcc.Add(dataGridViewRow.
Cells
[columnIndex]);
3672
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
4019
return row.
Cells
[columnIndex];
4024
row.
Cells
[columnIndex] = value;
4035
return row.
Cells
[columnName];
4040
row.
Cells
[columnName] = value;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (85)
360
int preferredThickness = dataGridViewRow.
Cells
[dataGridViewColumn.Index].GetPreferredWidth(
425
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
503
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
1459
if (!dataGridViewRow.
Cells
[dataGridViewColumn.Index].Selected)
1494
if (!dataGridViewRow.
Cells
[dataGridViewColumn.Index].Selected)
1532
if (!dataGridViewRow.
Cells
[dataGridViewColumn.Index].Selected)
4243
int cellsInCollection = dataGridViewRow.
Cells
.Count;
4260
dataGridViewRow.
Cells
.AddRange(cells);
6968
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[columnIndex];
6985
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
7015
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
7167
return columnIndex >= 0 ? dataGridViewRow.
Cells
[columnIndex] : dataGridViewRow.HeaderCell;
7360
.
Cells
[dataGridViewColumn.Index]
7378
.
Cells
[dataGridViewColumn.Index]
7434
.
Cells
[dataGridViewColumn.Index]
7452
.
Cells
[dataGridViewColumn.Index]
7655
.
Cells
[dataGridViewColumn.Index]
7673
.
Cells
[dataGridViewColumn.Index]
7733
.
Cells
[dataGridViewColumn.Index]
7751
.
Cells
[dataGridViewColumn.Index]
8101
.
Cells
[dataGridViewColumn.Index]
8171
.
Cells
[dataGridViewColumn.Index]
9753
dataGridViewCell = Rows[_ptCurrentCell.Y].
Cells
[_ptCurrentCell.X]; // un-share the edited cell
10667
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
10866
if (dataGridViewRow.
Cells
.Count < newColumnCount)
10869
dataGridViewRow.
Cells
.AddInternal(dataGridViewCellNew);
10888
if (dataGridViewRow.
Cells
.Count == newColumnCount)
10890
dataGridViewRow.
Cells
.RemoveAtInternal(newColumnCount - 1);
10894
Debug.Assert(dataGridViewRow.
Cells
.Count < newColumnCount);
11018
if (dataGridViewRow.
Cells
.Count < previousColumnCount + addedColumnCount)
11021
int indexCell = dataGridViewRow.
Cells
.AddInternal(dataGridViewCellNew);
11039
while (dataGridViewRow.
Cells
.Count > previousColumnCount)
11041
dataGridViewRow.
Cells
.RemoveAtInternal(dataGridViewRow.
Cells
.Count - 1);
11075
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[columnIndex];
11110
if (dataGridViewRow.
Cells
.Count > Columns.Count)
11792
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
11880
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
12188
&& IsSharedCellSelected(Rows.SharedRow(hti._row).
Cells
[hti._col], hti._row)
12343
&& (Columns[hti._col].Selected || IsSharedCellSelected(Rows.SharedRow(hti._row).
Cells
[hti._col], hti._row))
12549
|| IsSharedCellSelected(Rows.SharedRow(hti._row).
Cells
[hti._col], hti._row))
13116
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
13162
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
15507
if (dataGridViewRow.
Cells
.Count < newColumnCount)
15510
dataGridViewRow.
Cells
.InsertInternal(columnIndexInserted, dataGridViewCellNew);
15528
if (dataGridViewRow.
Cells
.Count == newColumnCount)
15530
dataGridViewRow.
Cells
.RemoveAtInternal(columnIndexInserted);
15534
Debug.Assert(dataGridViewRow.
Cells
.Count < newColumnCount);
16926
&& !Rows[_ptCurrentCell.Y].
Cells
[_ptCurrentCell.X].ReadOnly) // Un-shares the row
17178
if (dataGridViewRow.
Cells
.Count > newColumnCount)
17180
KeyboardToolTipStateMachine.Instance.Unhook(dataGridViewRow.
Cells
[columnIndex], KeyboardToolTip);
17181
dataGridViewRow.
Cells
.RemoveAtInternal(columnIndex);
17306
foreach (DataGridViewCell cell in Rows[rowIndexDeleted].
Cells
)
17439
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[columnIndex];
17483
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[columnIndex];
17791
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
18398
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
18799
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
18845
dataGridViewCell = Rows.SharedRow(rowIndex).
Cells
[columnIndex];
19835
DataGridViewCellCollection newRowCells = newRow.
Cells
;
19841
newRowCells = newRow.
Cells
;
25436
dataGridViewCurrentCell = Rows[_ptCurrentCell.Y].
Cells
[_ptCurrentCell.X];
25461
dataGridViewCurrentCell = Rows[_ptCurrentCell.Y].
Cells
[_ptCurrentCell.X];
25680
foreach (DataGridViewCell cell in row.
Cells
)
26739
return Rows.SharedRow(index).
Cells
[columnIndex];
26766
return Rows.SharedRow(rowIndex).
Cells
[index];
26836
&& !IsSharedCellVisible(Rows.SharedRow(rowIndex).
Cells
[columnIndex], rowIndex))
26898
currentCell = Rows.SharedRow(oldCurrentCellY).
Cells
[oldCurrentCellX];
26902
currentCell = Rows[oldCurrentCellY].
Cells
[oldCurrentCellX];
27013
currentCell = Rows[rowIndex].
Cells
[columnIndex];
27111
currentCell = Rows.SharedRow(oldCurrentCellY).
Cells
[oldCurrentCellX];
27115
currentCell = Rows[oldCurrentCellY].
Cells
[oldCurrentCellX];
27546
if (IsSharedCellReadOnly(dataGridViewRow.
Cells
[columnIndex], rowIndex) != readOnly)
27548
DataGridViewCell dataGridViewCell = Rows[rowIndex].
Cells
[columnIndex];
27572
dataGridViewCellTmp = Rows[row].
Cells
[columnIndex];
27579
dataGridViewCellTmp = Rows[row].
Cells
[columnIndex];
27590
dataGridViewCellTmp = Rows[rowIndex].
Cells
[column];
27597
dataGridViewCellTmp = Rows[rowIndex].
Cells
[column];
27696
if (IsSharedCellSelected(dataGridViewRow.
Cells
[columnIndex], rowIndex) != selected)
27698
DataGridViewCell dataGridViewCell = Rows[rowIndex].
Cells
[columnIndex];
27735
dataGridViewCellTmp = Rows[row].
Cells
[columnIndex];
27742
dataGridViewCellTmp = Rows[row].
Cells
[columnIndex];
27770
dataGridViewCellTmp = Rows[rowIndex].
Cells
[column];
27777
dataGridViewCellTmp = Rows[rowIndex].
Cells
[column];
30050
dataGridViewCell = Rows.SharedRow(hti._row).
Cells
[hti._col];
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
428
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)
313
|| string.IsNullOrEmpty(DataGridView.Rows[i].
Cells
[j].Value?.ToString()))
318
_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");