[dba-VB] C# combo boxes

Gustav Brock Gustav at cactus.dk
Tue Mar 15 04:55:02 CDT 2011


Hi John

Good!
Yes, the content of Text is handled by DisplayMember:

                this.comboBoxCountry.DataSource = countryList;
                this.comboBoxCountry.ValueMember = "Id";
                this.comboBoxCountry.DisplayMember = "CountryNameUK";

/gustav


>>> jwcolby at colbyconsulting.com 15-03-2011 03:13 >>>
I got it working.  I had to not only set the properties in the datasource property dialog of the 
combo box, but I also had to set the data bindings properties in the combo, specifically setting the 
text property there to NONE.

She's a wurkin.

John W. Colby
www.ColbyConsulting.com 






More information about the dba-VB mailing list