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)
114
if (_dataBoundColumnRadioButton.Checked &&
_dataColumns
.SelectedIndex > -1)
116
column.DataPropertyName = ((ListBoxItem)
_dataColumns
.SelectedItem!).PropertyName;
179
bool dataGridViewIsDataBound =
_dataColumns
.Items.Count > 0;
250
[MemberNotNull(nameof(
_dataColumns
))]
304
_overarchingTableLayoutPanel.Controls.Add(
_dataColumns
, 1, 2);
395
resources.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;
492
if (
_dataColumns
.SelectedItem is null)
497
_headerTextBox.Text = _nameTextBox.Text = ((ListBoxItem)
_dataColumns
.SelectedItem).PropertyName;
501
SetDefaultDataGridViewColumnType(((ListBoxItem)
_dataColumns
.SelectedItem).PropertyType);
619
Debug.Assert(
_dataColumns
.Enabled, "dataColumns list box and dataBoundColumnRadioButton should be enabled / disabled in sync");
620
_dataColumns
.Select();
705
int 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;