/// <summary> /// Sets the editor on which this control is operating - the control is re-used by the <see cref="TableView"/>. /// </summary> /// <param name="editor"></param> public void SetEditor(ComboBoxCellEditor editor) { _editor = editor; // update value _comboBox.DataSource = _editor.GetChoices(); _comboBox.SelectedItem = _editor.Value; }
private void ComboBoxCellEditorControl_Load(object sender, System.EventArgs e) { _comboBox.DataSource = _editor.GetChoices(); _comboBox.SelectedItem = _editor.Value; }