2 writes to _initialDataGridViewColumnsCount
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
806
_initialDataGridViewColumnsCount
= _liveDataGridView.Columns.Count;
810
_initialDataGridViewColumnsCount
= -1;
7 references to _initialDataGridViewColumnsCount
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (7)
519
Debug.Assert(
_initialDataGridViewColumnsCount
!= -1, "did you forget to set the initialDataGridViewColumnsCount when you started the dialog?");
527
DataGridViewColumn[] cols = new DataGridViewColumn[_liveDataGridView.Columns.Count -
_initialDataGridViewColumnsCount
];
528
for (int i =
_initialDataGridViewColumnsCount
; i < _liveDataGridView.Columns.Count; i++)
530
cols[i -
_initialDataGridViewColumnsCount
] = _liveDataGridView.Columns[i];
533
for (int i =
_initialDataGridViewColumnsCount
; i < _liveDataGridView.Columns.Count;)
535
_liveDataGridView.Columns.RemoveAt(
_initialDataGridViewColumnsCount
);
562
Debug.Assert(
_initialDataGridViewColumnsCount
== -1, "did you forget to reset the _initialDataGridViewColumnsCount when you started the dialog?");