1 write to _columnsPrivateCopy
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
68
_columnsPrivateCopy
= _dataGridViewPrivateCopy.Columns;
31 references to _columnsPrivateCopy
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (31)
69
_columnsPrivateCopy
.CollectionChanged += columnsPrivateCopy_CollectionChanged;
99
_selectedColumns.SelectedIndex =
_columnsPrivateCopy
.IndexOf((DataGridViewColumn)e.Element!);
146
_columnsPrivateCopy
.RemoveAt(selectedIndex);
149
_columnsPrivateCopy
.Insert(selectedIndex, newColumn);
219
DataGridViewColumn[] newColumns = new DataGridViewColumn[
_columnsPrivateCopy
.Count];
220
bool[] userAddedColumnsInfo = new bool[
_columnsPrivateCopy
.Count];
221
string?[] compNames = new string?[
_columnsPrivateCopy
.Count];
222
for (int i = 0; i <
_columnsPrivateCopy
.Count; i++)
224
DataGridViewColumn newColumn = (DataGridViewColumn)
_columnsPrivateCopy
[i].Clone();
226
newColumn.ContextMenuStrip =
_columnsPrivateCopy
[i].ContextMenuStrip;
229
if (_userAddedColumns.Contains(
_columnsPrivateCopy
[i]))
234
if (_columnsNames.TryGetValue(
_columnsPrivateCopy
[i], out string? compName))
437
for (int i = 0; i <
_columnsPrivateCopy
.Count; i++)
439
_columnsPrivateCopy
[i].DisplayIndex = i;
673
_columnsPrivateCopy
.RemoveAt(selectedIndex);
678
_columnsPrivateCopy
[selectedIndex].Frozen = true;
683
Debug.Assert(
_columnsPrivateCopy
[i].Frozen, "MOVE_DOWN : all the columns up to the one we moved should be frozen");
690
_columnsPrivateCopy
.Insert(selectedIndex + 1, item.DataGridViewColumn);
719
_columnsPrivateCopy
.RemoveAt(selectedIndex - 1);
727
if (item.DataGridViewColumn.Frozen && !
_columnsPrivateCopy
[selectedIndex - 1].Frozen)
734
_columnsPrivateCopy
.Insert(selectedIndex, item.DataGridViewColumn);
828
_columnsNames.Remove(
_columnsPrivateCopy
[selectedIndex]);
829
_userAddedColumns.Remove(
_columnsPrivateCopy
[selectedIndex]);
831
_columnsPrivateCopy
.RemoveAt(selectedIndex);
849
_addColumnDialog = ScaleHelper.InvokeInSystemAwareContext(() => new DataGridViewAddColumnDialog(
_columnsPrivateCopy
, _liveDataGridView!));
875
for (int i = 0; i <
_columnsPrivateCopy
.Count; i++)
877
ComponentDesigner columnDesigner = DataGridViewAddColumnDialog.GetComponentDesignerForType(tr,
_columnsPrivateCopy
[i].GetType())!;
878
_selectedColumns.Items.Add(new ListBoxItem(
_columnsPrivateCopy
[i], this, columnDesigner));
1108
_columnsNames.EnsureCapacity(
_columnsPrivateCopy
.Count);
1109
_columnsPrivateCopy
.Clear();
1130
_columnsPrivateCopy
.Add(col);