Wire up a ComboBox.
- From: "dbuchanan" <dbuchanan@xxxxxxxxxxxxxxxx>
- Date: Mon, 10 Sep 2007 06:52:16 -0400
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
.
- Follow-Ups:
- RE: Wire up a ComboBox.
- From: Linda Liu [MSFT]
- RE: Wire up a ComboBox.
- Prev by Date: Re: Create a page in a class library?
- Next by Date: Re: how to display a simple table
- Previous by thread: Re: Squares in TexBoxes where CrLf should be
- Next by thread: RE: Wire up a ComboBox.
- Index(es):
Relevant Pages
|