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)
115
if (_dataBoundColumnRadioButton.Checked &&
_dataColumns
.SelectedIndex > -1)
117
column.DataPropertyName = ((ListBoxItem)
_dataColumns
.SelectedItem!).PropertyName;
180
bool dataGridViewIsDataBound =
_dataColumns
.Items.Count > 0;
251
[MemberNotNull(nameof(
_dataColumns
))]
305
_overarchingTableLayoutPanel.Controls.Add(
_dataColumns
, 1, 2);
396
resources.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;
493
if (
_dataColumns
.SelectedItem is null)
498
_headerTextBox.Text = _nameTextBox.Text = ((ListBoxItem)
_dataColumns
.SelectedItem).PropertyName;
502
SetDefaultDataGridViewColumnType(((ListBoxItem)
_dataColumns
.SelectedItem).PropertyType);
620
Debug.Assert(
_dataColumns
.Enabled, "dataColumns list box and dataBoundColumnRadioButton should be enabled / disabled in sync");
621
_dataColumns
.Select();
706
int selectedIndex =
_dataColumns
.SelectedIndex;
708
_dataColumns
.SelectedIndex = -1;
709
_dataColumns
.Items.Clear();
740
_dataColumns
.Items.Add(new ListBoxItem(propertyDescriptor.PropertyType, propertyDescriptor.Name));
745
if (selectedIndex != -1 && selectedIndex <
_dataColumns
.Items.Count)
747
_dataColumns
.SelectedIndex = selectedIndex;
751
_dataColumns
.SelectedIndex =
_dataColumns
.Items.Count > 0 ? 0 : -1;