Wire up a ComboBox.



How do I wire up ComboBox to my data table to store my selection and to my lookup table that allows me to make that selection:

Here is my attempt. Please correct me.

Configuration and DataBinding of the ComboBox...

DropDownStyle:
DropDownList

DataSource:
The bindingSource for the lookup table that I put in the component tray "bsPhase"

Display Member:
The column of the lookup table that I want to display in the "Phase"

Value Member:
The column of the lookup table that contains the value that is linked to the table that the form is bound to "pkPhaseID"

Selected Value:
What is this for?

---
DataBindings configuration properties of the ComboBox

(Name):
ComboBoxfkPhaseID

(DataBindings) (Advanced):
I don't think I need this.

(DataBindings) Selected Item:
What is this for?

(DataBindings) Selected Value:
What is this for? (? Shouldn't this be the target column of my main table?)

(DataBindings) Tag:
I don't think I need this.

(DataBindings) Text:
The BindingSource for the Main table and the column to bind it to "bsMTask - fkPhaseID"
(? shouldn't this be the text of the lookup table I wish to display?)

Please tell me what I have missed.

Thank you,
Doug

.



Relevant Pages

  • Re: Wire up a ComboBox.
    ... displayed in ComboBox is 'System.Data.DataRowView'. ... of the SelectedItem as well as the SelectedValue property is of the type ... so-called lookup table. ... DataBindings configuration properties of the ComboBox ...
    (microsoft.public.dotnet.framework.windowsforms)
  • UserControl und DataBindings
    ... ich habe eine userControl in dem befindet sich u.a. eine Lookup Combobox. ... über die Eigenschaften das (DataBindings) die Databindings der Lookup ... Next by Date: ...
    (microsoft.public.de.german.entwickler.dotnet.datenbank)
  • UserControl und DataBindings
    ... ich habe eine userControl in dem befindet sich u.a. eine Lookup Combobox. ... über die Eigenschaften das (DataBindings) die Databindings der Lookup ... Next by Date: ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Using large lookup table with combobox
    ... Or create a couple of combos (think make/model/year selection on yahoo ... I set Combobox Datasource to parts table. ... How to use lookup table when lookup table is large? ... I think I need virtual combobox control with autocomplete and selection from ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Using large lookup table with combobox
    ... I would go with option 2, because the DGV already works in virtual mode. ... User must see combobox triangle in right side for selection. ... If lookup table is not loaded, ...
    (microsoft.public.dotnet.framework.windowsforms.controls)