示例#1
0
		/// <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;
		}
示例#2
0
        /// <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;
        }
示例#3
0
 private void ComboBoxCellEditorControl_Load(object sender, System.EventArgs e)
 {
     _comboBox.DataSource   = _editor.GetChoices();
     _comboBox.SelectedItem = _editor.Value;
 }