2 writes to _initialDataGridViewColumnsCount
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
813
_initialDataGridViewColumnsCount
= _liveDataGridView.Columns.Count;
817
_initialDataGridViewColumnsCount
= -1;
7 references to _initialDataGridViewColumnsCount
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (7)
520
Debug.Assert(
_initialDataGridViewColumnsCount
!= -1, "did you forget to set the initialDataGridViewColumnsCount when you started the dialog?");
528
DataGridViewColumn[] cols = new DataGridViewColumn[_liveDataGridView.Columns.Count -
_initialDataGridViewColumnsCount
];
529
for (int i =
_initialDataGridViewColumnsCount
; i < _liveDataGridView.Columns.Count; i++)
531
cols[i -
_initialDataGridViewColumnsCount
] = _liveDataGridView.Columns[i];
534
for (int i =
_initialDataGridViewColumnsCount
; i < _liveDataGridView.Columns.Count;)
536
_liveDataGridView.Columns.RemoveAt(
_initialDataGridViewColumnsCount
);
563
Debug.Assert(
_initialDataGridViewColumnsCount
== -1, "did you forget to reset the _initialDataGridViewColumnsCount when you started the dialog?");