1 write to _dataColumns
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
271_dataColumns = new ListBox();
24 references to _dataColumns
System.Windows.Forms.Design (24)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (24)
114if (_dataBoundColumnRadioButton.Checked && _dataColumns.SelectedIndex > -1) 116column.DataPropertyName = ((ListBoxItem)_dataColumns.SelectedItem!).PropertyName; 179bool dataGridViewIsDataBound = _dataColumns.Items.Count > 0; 250[MemberNotNull(nameof(_dataColumns))] 304_overarchingTableLayoutPanel.Controls.Add(_dataColumns, 1, 2); 395resources.ApplyResources(_dataColumns, "dataColumns"); 396_overarchingTableLayoutPanel.SetColumnSpan(_dataColumns, 2); 397_dataColumns.FormattingEnabled = true; 398_dataColumns.Margin = new Padding(0); 399_dataColumns.Name = "dataColumns"; 401_dataColumns.SelectedIndexChanged += dataColumns_SelectedIndexChanged; 484_dataColumns.Enabled = _dataBoundColumnRadioButton.Checked; 492if (_dataColumns.SelectedItem is null) 497_headerTextBox.Text = _nameTextBox.Text = ((ListBoxItem)_dataColumns.SelectedItem).PropertyName; 501SetDefaultDataGridViewColumnType(((ListBoxItem)_dataColumns.SelectedItem).PropertyType); 619Debug.Assert(_dataColumns.Enabled, "dataColumns list box and dataBoundColumnRadioButton should be enabled / disabled in sync"); 620_dataColumns.Select(); 705int selectedIndex = _dataColumns.SelectedIndex; 707_dataColumns.SelectedIndex = -1; 708_dataColumns.Items.Clear(); 738_dataColumns.Items.Add(new ListBoxItem(propertyDescriptor.PropertyType, propertyDescriptor.Name)); 743_dataColumns.SelectedIndex = selectedIndex != -1 && selectedIndex < _dataColumns.Items.Count 745: _dataColumns.Items.Count > 0 ? 0 : -1;