1 write to _dataColumns
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
272_dataColumns = new ListBox();
25 references to _dataColumns
System.Windows.Forms.Design (25)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (25)
115if (_dataBoundColumnRadioButton.Checked && _dataColumns.SelectedIndex > -1) 117column.DataPropertyName = ((ListBoxItem)_dataColumns.SelectedItem!).PropertyName; 180bool dataGridViewIsDataBound = _dataColumns.Items.Count > 0; 251[MemberNotNull(nameof(_dataColumns))] 305_overarchingTableLayoutPanel.Controls.Add(_dataColumns, 1, 2); 396resources.ApplyResources(_dataColumns, "dataColumns"); 397_overarchingTableLayoutPanel.SetColumnSpan(_dataColumns, 2); 398_dataColumns.FormattingEnabled = true; 399_dataColumns.Margin = new Padding(0); 400_dataColumns.Name = "dataColumns"; 402_dataColumns.SelectedIndexChanged += dataColumns_SelectedIndexChanged; 485_dataColumns.Enabled = _dataBoundColumnRadioButton.Checked; 493if (_dataColumns.SelectedItem is null) 498_headerTextBox.Text = _nameTextBox.Text = ((ListBoxItem)_dataColumns.SelectedItem).PropertyName; 502SetDefaultDataGridViewColumnType(((ListBoxItem)_dataColumns.SelectedItem).PropertyType); 620Debug.Assert(_dataColumns.Enabled, "dataColumns list box and dataBoundColumnRadioButton should be enabled / disabled in sync"); 621_dataColumns.Select(); 706int selectedIndex = _dataColumns.SelectedIndex; 708_dataColumns.SelectedIndex = -1; 709_dataColumns.Items.Clear(); 740_dataColumns.Items.Add(new ListBoxItem(propertyDescriptor.PropertyType, propertyDescriptor.Name)); 745if (selectedIndex != -1 && selectedIndex < _dataColumns.Items.Count) 747_dataColumns.SelectedIndex = selectedIndex; 751_dataColumns.SelectedIndex = _dataColumns.Items.Count > 0 ? 0 : -1;