1 write to _individualSelectedCells
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
421
_individualSelectedCells
= [];
54 references to _individualSelectedCells
System.Windows.Forms (54)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
3638
stcc.AddCellLinkedList(
_individualSelectedCells
);
3655
stcc.AddCellLinkedList(
_individualSelectedCells
);
3675
stcc.AddCellLinkedList(
_individualSelectedCells
);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (51)
1398
allCellsSelected =
_individualSelectedCells
.Count == Columns.Count * Rows.Count;
1432
allCellsSelected = _selectedBandIndexes.Count * Rows.Count +
_individualSelectedCells
.Count == Columns.Count * Rows.Count;
1468
allCellsSelected = _selectedBandIndexes.Count * Columns.Count +
_individualSelectedCells
.Count == Columns.Count * Rows.Count;
3392
if (_selectedBandIndexes.Count > BulkPaintThreshold ||
_individualSelectedCells
.Count > BulkPaintThreshold)
3503
if (_selectedBandIndexes.Count > BulkPaintThreshold ||
_individualSelectedCells
.Count > BulkPaintThreshold)
6854
cellCount =
_individualSelectedCells
.Count;
6884
foreach (DataGridViewCell dataGridViewCell in
_individualSelectedCells
)
7747
if (!selectedVisibleCellExists &&
_individualSelectedCells
.Count > 0)
7749
foreach (DataGridViewCell dataGridViewCell in
_individualSelectedCells
)
7863
foreach (DataGridViewCell dataGridViewCell in
_individualSelectedCells
)
12139
Debug.Assert(MultiSelect ||
_individualSelectedCells
.Count <= 1);
13229
||
_individualSelectedCells
.Count > 0;
13233
_individualSelectedCells
.Clear();
13803
Debug.Assert(
_individualSelectedCells
.Count == 0);
17228
_dataGridViewState2[State2_RaiseSelectionChanged] |=
_individualSelectedCells
.RemoveAllCellsAtBand(column: true, columnIndex) > 0
17367
_dataGridViewState2[State2_RaiseSelectionChanged] |=
_individualSelectedCells
.RemoveAllCellsAtBand(column: false, rowIndexDeleted) > 0
17377
_individualSelectedCells
.Add(dataGridViewCell);
17419
_dataGridViewState2[State2_ReplacedCellSelected] =
_individualSelectedCells
.Contains(dataGridViewCell);
17422
_individualSelectedCells
.Remove(dataGridViewCell);
18085
Debug.Assert(
_individualSelectedCells
.Count == 0);
25672
if (
_individualSelectedCells
.Count > BulkPaintThreshold)
25680
while (
_individualSelectedCells
.Count > 0)
25682
DataGridViewCell dataGridViewCell =
_individualSelectedCells
.HeadCell;
25699
if (
_individualSelectedCells
.Count > BulkPaintThreshold)
25707
while (
_individualSelectedCells
.Count > 0)
25709
DataGridViewCell dataGridViewCell =
_individualSelectedCells
.HeadCell;
25716
while (
_individualSelectedCells
.Count > 1)
25718
dataGridViewCell =
_individualSelectedCells
[1];
25744
while (cellIndex <
_individualSelectedCells
.Count)
25746
dataGridViewCell =
_individualSelectedCells
[cellIndex];
25768
while (cellIndex <
_individualSelectedCells
.Count)
25770
dataGridViewCell =
_individualSelectedCells
[cellIndex];
25794
while (cellIndex <
_individualSelectedCells
.Count)
25796
DataGridViewCell dataGridViewCell =
_individualSelectedCells
[cellIndex];
26644
if (index <
_individualSelectedCells
.Count)
26646
return
_individualSelectedCells
[index];
26671
&& index <
_individualSelectedCells
.Count)
26673
return
_individualSelectedCells
[index];
26697
if (SelectionMode == DataGridViewSelectionMode.RowHeaderSelect && index <
_individualSelectedCells
.Count)
26699
return
_individualSelectedCells
[index];
27403
if (MultiSelect && (
_individualSelectedCells
.Count + _selectedBandIndexes.Count) > 1)
27408
if (
_individualSelectedCells
.Count == 1)
27410
DataGridViewCell dataGridViewCell =
_individualSelectedCells
.HeadCell;
27630
_individualSelectedCells
.Add(dataGridViewCell);
27638
Debug.Assert(
_individualSelectedCells
.Contains(dataGridViewCell));
27639
_individualSelectedCells
.Remove(dataGridViewCell);
27664
_individualSelectedCells
.Add(dataGridViewCellTmp);
27671
_individualSelectedCells
.Add(dataGridViewCellTmp);
27699
_individualSelectedCells
.Add(dataGridViewCellTmp);
27706
_individualSelectedCells
.Add(dataGridViewCellTmp);
27757
Debug.Assert(
_individualSelectedCells
.Count <= 1);