195 references to Cells
System.Windows.Forms (180)
winforms\Managed\System\WinForms\DataGridView.cs (9)
2188
return dataGridViewRow.
Cells
[this.ptCurrentCell.X];
2253
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[this.ptCurrentCell.X];
2909
return this.Rows[firstDisplayedCellAddress.Y].
Cells
[firstDisplayedCellAddress.X]; // unshares the row of first displayed cell
4634
stcc.Add(dataGridViewRow.
Cells
[columnIndex]);
4649
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
5091
return row.
Cells
[columnIndex];
5096
row.
Cells
[columnIndex] = value;
5111
return row.
Cells
[columnName];
5116
row.
Cells
[columnName] = value;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (2)
202
return this.owner.Rows[hti.RowIndex].
Cells
[hti.ColumnIndex].AccessibilityObject;
398
return this.owner.Rows[row].
Cells
[column].AccessibilityObject;
winforms\Managed\System\WinForms\DataGridViewBand.cs (1)
586
foreach (DataGridViewCell dataGridViewCell in ((DataGridViewRow) this).
Cells
)
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (3)
104
DataGridViewButtonCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewButtonCell;
146
DataGridViewButtonCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewButtonCell;
188
DataGridViewButtonCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewButtonCell;
winforms\Managed\System\WinForms\DataGridViewCell.cs (4)
5286
return this.owner.DataGridView.Rows[previousVisibleRow].
Cells
[this.owner.OwningColumn.Index].AccessibilityObject;
5296
return this.owner.DataGridView.Rows[nextVisibleRow].
Cells
[this.owner.OwningColumn.Index].AccessibilityObject;
5338
return this.owner.OwningRow.
Cells
[previousVisibleColumnIndex].AccessibilityObject;
5380
return this.owner.OwningRow.
Cells
[nextVisibleColumnIndex].AccessibilityObject;
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (5)
122
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewCheckBoxCell;
162
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewCheckBoxCell;
203
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewCheckBoxCell;
246
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewCheckBoxCell;
300
DataGridViewCheckBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewCheckBoxCell;
winforms\Managed\System\WinForms\DataGridViewColumn.cs (6)
1269
preferredCellThickness = dataGridViewRow.
Cells
[this.Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness);
1273
preferredCellThickness = dataGridViewRow.
Cells
[this.Index].GetPreferredSize(rowIndex).Width;
1292
preferredCellThickness = dataGridViewRow.
Cells
[this.Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness);
1296
preferredCellThickness = dataGridViewRow.
Cells
[this.Index].GetPreferredSize(rowIndex).Width;
1315
preferredCellThickness = dataGridViewRow.
Cells
[this.Index].GetPreferredWidth(rowIndex, dataGridViewRow.Thickness);
1319
preferredCellThickness = dataGridViewRow.
Cells
[this.Index].GetPreferredSize(rowIndex).Width;
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (11)
61
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
138
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
181
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
222
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
264
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
304
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
343
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
406
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
445
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
484
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
531
DataGridViewComboBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewComboBoxCell;
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (3)
121
DataGridViewImageCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewImageCell;
215
DataGridViewImageCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewImageCell;
254
DataGridViewImageCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewImageCell;
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (7)
56
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewLinkCell;
127
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewLinkCell;
166
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewLinkCell;
218
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewLinkCell;
260
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewLinkCell;
300
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewLinkCell;
339
DataGridViewLinkCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewLinkCell;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (82)
332
int preferredThickness = dataGridViewRow.
Cells
[dataGridViewColumn.Index].GetPreferredWidth(rowIndex, dataGridViewRow.GetHeight(rowIndex));
389
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
467
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
1403
if (!dataGridViewRow.
Cells
[dataGridViewColumn.Index].Selected)
1435
if (!dataGridViewRow.
Cells
[dataGridViewColumn.Index].Selected)
1470
if (!dataGridViewRow.
Cells
[dataGridViewColumn.Index].Selected)
4163
int cellsInCollection = dataGridViewRow.
Cells
.Count;
4178
dataGridViewRow.
Cells
.AddRange(cells);
6976
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[columnIndex];
6991
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
7021
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
7189
return dataGridViewRow.
Cells
[columnIndex];
7384
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7398
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7449
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7463
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7656
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7670
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7721
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
7735
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
8122
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
8182
cellContent = this.Rows.SharedRow(rowIndex).
Cells
[dataGridViewColumn.Index].GetClipboardContentInternal(rowIndex,
9854
dataGridViewCell = this.Rows[this.ptCurrentCell.Y].
Cells
[this.ptCurrentCell.X]; // unshare the edited cell
10785
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
10963
if (dataGridViewRow.
Cells
.Count < newColumnCount)
10966
dataGridViewRow.
Cells
.AddInternal(dataGridViewCellNew);
10982
if (dataGridViewRow.
Cells
.Count == newColumnCount)
10984
dataGridViewRow.
Cells
.RemoveAtInternal(newColumnCount - 1);
10988
Debug.Assert(dataGridViewRow.
Cells
.Count < newColumnCount);
11105
if (dataGridViewRow.
Cells
.Count < previousColumnCount + addedColumnCount)
11108
int indexCell = dataGridViewRow.
Cells
.AddInternal(dataGridViewCellNew);
11125
while (dataGridViewRow.
Cells
.Count > previousColumnCount)
11127
dataGridViewRow.
Cells
.RemoveAtInternal(dataGridViewRow.
Cells
.Count - 1);
11163
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[columnIndex];
11195
if (dataGridViewRow.
Cells
.Count > this.Columns.Count)
12023
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
12156
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
12501
IsSharedCellSelected(this.Rows.SharedRow(hti.row).
Cells
[hti.col], hti.row) &&
12633
(this.Columns[hti.col].Selected || IsSharedCellSelected(this.Rows.SharedRow(hti.row).
Cells
[hti.col], hti.row)) &&
12813
IsSharedCellSelected(this.Rows.SharedRow(hti.row).
Cells
[hti.col], hti.row)) &&
13453
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
13505
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
15927
if (dataGridViewRow.
Cells
.Count < newColumnCount)
15930
dataGridViewRow.
Cells
.InsertInternal(columnIndexInserted, dataGridViewCellNew);
15947
if (dataGridViewRow.
Cells
.Count == newColumnCount)
15949
dataGridViewRow.
Cells
.RemoveAtInternal(columnIndexInserted);
15953
Debug.Assert(dataGridViewRow.
Cells
.Count < newColumnCount);
17317
!this.Rows[this.ptCurrentCell.Y].
Cells
[this.ptCurrentCell.X].ReadOnly) // Unshares the row
17567
if (dataGridViewRow.
Cells
.Count > newColumnCount)
17569
dataGridViewRow.
Cells
.RemoveAtInternal(columnIndex);
17817
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[columnIndex];
17858
DataGridViewCell dataGridViewCell = dataGridViewRow.
Cells
[columnIndex];
18188
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
18836
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
19272
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
19319
dataGridViewCell = this.Rows.SharedRow(rowIndex).
Cells
[columnIndex];
20319
DataGridViewCellCollection newRowCells = newRow.
Cells
;
20325
newRowCells = newRow.
Cells
;
25528
dataGridViewCurrentCell = this.Rows[this.ptCurrentCell.Y].
Cells
[this.ptCurrentCell.X]; // unsharing the row before pushing the new value
25549
dataGridViewCurrentCell = this.Rows[this.ptCurrentCell.Y].
Cells
[this.ptCurrentCell.X]; // unsharing the row before pushing the new value
26759
return this.Rows.SharedRow(index).
Cells
[columnIndex];
26784
return this.Rows.SharedRow(rowIndex).
Cells
[index];
26845
!IsSharedCellVisible(this.Rows.SharedRow(rowIndex).
Cells
[columnIndex], rowIndex))
26906
currentCell = this.Rows.SharedRow(oldCurrentCellY).
Cells
[oldCurrentCellX];
26909
currentCell = this.Rows[oldCurrentCellY].
Cells
[oldCurrentCellX]; // unsharing the current row
27016
currentCell = this.Rows[rowIndex].
Cells
[columnIndex]; // unsharing the row
27104
currentCell = this.Rows.SharedRow(oldCurrentCellY).
Cells
[oldCurrentCellX];
27107
currentCell = this.Rows[oldCurrentCellY].
Cells
[oldCurrentCellX]; // unsharing the current row
27493
if (IsSharedCellReadOnly(dataGridViewRow.
Cells
[columnIndex], rowIndex) != readOnly)
27495
DataGridViewCell dataGridViewCell = this.Rows[rowIndex].
Cells
[columnIndex];
27520
dataGridViewCellTmp = this.Rows[row].
Cells
[columnIndex];
27526
dataGridViewCellTmp = this.Rows[row].
Cells
[columnIndex];
27536
dataGridViewCellTmp = this.Rows[rowIndex].
Cells
[column];
27542
dataGridViewCellTmp = this.Rows[rowIndex].
Cells
[column];
27646
if (IsSharedCellSelected(dataGridViewRow.
Cells
[columnIndex], rowIndex) != selected)
27648
DataGridViewCell dataGridViewCell = this.Rows[rowIndex].
Cells
[columnIndex];
27684
dataGridViewCellTmp = this.Rows[row].
Cells
[columnIndex];
27690
dataGridViewCellTmp = this.Rows[row].
Cells
[columnIndex];
27717
dataGridViewCellTmp = this.Rows[rowIndex].
Cells
[column];
27723
dataGridViewCellTmp = this.Rows[rowIndex].
Cells
[column];
29872
dataGridViewCell = this.Rows.SharedRow(hti.row).
Cells
[hti.col];
winforms\Managed\System\WinForms\DataGridViewRow.cs (17)
1153
int cellsCount = rowTemplate.
Cells
.Count;
1159
DataGridViewCell dataGridViewCell = rowTemplate.
Cells
[i];
1163
this.
Cells
.AddRange(cells);
1196
DataGridViewCellCollection cells = this.
Cells
;
1227
Debug.Assert(this.
Cells
.Count == dataGridView.Columns.Count);
1252
foreach (DataGridViewCell dataGridViewCell in this.
Cells
)
1417
foreach (DataGridViewCell dataGridViewCell in this.
Cells
)
1618
cell = this.
Cells
[dataGridViewColumn.Index];
1705
cell = this.
Cells
[dataGridViewColumn.Index];
1834
foreach (DataGridViewCell dataGridViewCellTmp in this.
Cells
)
1875
DataGridViewCellCollection cells = this.
Cells
;
2095
for (int i = 0; i < this.owner.
Cells
.Count; i ++)
2097
if (!this.owner.
Cells
[i].Selected)
2184
return this.owner.
Cells
[columnIndex].AccessibilityObject;
2327
if (this.owner.
Cells
.Count > 0)
2331
dataGridView.CurrentCell = this.owner.
Cells
[dataGridView.CurrentCell.OwningColumn.Index]; // Do not change old selection
2338
dataGridView.CurrentCell = this.owner.
Cells
[firstVisibleCell]; // Do not change old selection
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (29)
283
foreach (DataGridViewCell dataGridViewCell in newDataGridViewRow.
Cells
)
347
if (this.DataGridView.RowTemplate.
Cells
.Count > this.DataGridView.Columns.Count)
353
Debug.Assert(dataGridViewRow.
Cells
.Count == this.DataGridView.Columns.Count);
361
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
386
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
510
if (this.DataGridView.RowTemplate.
Cells
.Count > this.DataGridView.Columns.Count)
516
Debug.Assert(rowTemplate.
Cells
.Count == this.DataGridView.Columns.Count);
521
foreach (DataGridViewCell dataGridViewCell in rowTemplate.
Cells
)
562
if (dataGridViewRow.
Cells
.Count > this.DataGridView.Columns.Count)
582
Debug.Assert(dataGridViewRow.
Cells
.Count == this.DataGridView.Columns.Count);
586
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
823
DataGridViewCellCollection dgvcc = dataGridViewRow.
Cells
;
895
Debug.Assert(dataGridViewRow.
Cells
.Count == this.DataGridView.Columns.Count);
897
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
1546
if (this.DataGridView.RowTemplate.
Cells
.Count > this.DataGridView.Columns.Count)
1559
Debug.Assert(rowTemplate.
Cells
.Count == this.DataGridView.Columns.Count);
1564
foreach (DataGridViewCell dataGridViewCell in rowTemplate.
Cells
)
1610
if (dataGridViewRow.
Cells
.Count > this.DataGridView.Columns.Count)
1641
if (dataGridViewRow.
Cells
.Count > this.DataGridView.Columns.Count)
1647
Debug.Assert(dataGridViewRow.
Cells
.Count == this.DataGridView.Columns.Count);
1651
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
1841
DataGridViewCellCollection dgvcc = dataGridViewRow.
Cells
;
1923
Debug.Assert(dataGridViewRow.
Cells
.Count == this.DataGridView.Columns.Count);
1925
foreach (DataGridViewCell dataGridViewCell in dataGridViewRow.
Cells
)
2361
DataGridViewCellCollection cells = dataGridViewRow.
Cells
;
2385
DataGridViewCellCollection cells = dataGridViewRow.
Cells
;
2507
DataGridViewCell dataGridViewCell1 = dataGridViewRow1.
Cells
[columnIndex];
2508
DataGridViewCell dataGridViewCell2 = dataGridViewRow2.
Cells
[columnIndex];
2815
return dataGridViewRow.
Cells
[this.sortedColumnIndex].GetValueInternal(rowIndex);
winforms\Managed\System\WinForms\DataGridViewTextBoxColumn.cs (1)
77
DataGridViewTextBoxCell dataGridViewCell = dataGridViewRow.
Cells
[this.Index] as DataGridViewTextBoxCell;
System.WorkflowServices (15)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (15)
167
this.parametersGrid.CurrentCell = this.parametersGrid.Rows[this.parametersGrid.Rows.Count - 2].
Cells
[this.nameColumn.Index];
224
DataGridViewCell currentCell = this.parametersGrid.Rows[combo.EditingControlRowIndex].
Cells
[this.typeColumn.Index];
298
this.parametersGrid.CurrentCell = currentRow.
Cells
[this.nameColumn.Index];
313
this.parametersGrid.CurrentCell = currentRow.
Cells
[this.nameColumn.Index];
372
if (typeof(void).ToString().Equals(e.FormattedValue) && !(this.parametersGrid.Rows[e.RowIndex].
Cells
[this.nameColumn.Index].Value.Equals(SR2.GetString(SR2.ReturnValueString))))
413
if (!this.parametersGrid.Rows[this.parametersGrid.RowCount - 1].
Cells
[this.nameColumn.Index].Value.Equals(this.ParameterTemplateRowName))
416
editedRow.
Cells
[this.typeColumn.Index].Value = typeof(string);
417
editedRow.
Cells
[this.directionColumn.Index].Value = SR2.GetString(SR2.ParameterDirectionIn);
423
DataGridViewCell currentCell = this.parametersGrid.Rows[e.RowIndex].
Cells
[e.ColumnIndex];
533
returnValueRow.
Cells
[this.nameColumn.Index].ReadOnly = true;
534
returnValueRow.
Cells
[this.directionColumn.Index].ReadOnly = true;
704
string name = row.
Cells
[this.nameColumn.Index].Value as string;
705
object typeCell = row.
Cells
[this.typeColumn.Index].Value;
706
string direction = row.
Cells
[this.directionColumn.Index].Value as string;
767
if (parameterName.Equals(row.
Cells
[this.nameColumn.Index].Value.ToString()))