G
Guest
Is there any way to add an initial value into a databound combo box on a
windows form.
I have a combo box set to dropdown list so users cannot add their own items
and I fill the data from a dataset in the following code
DataSet dsTitles = DataAccess.GetLookupItems("Titles", "Title");
cbPersonTitle.DisplayMember = "Title";
cbPersonTitle.ValueMember = "TitleID";
cbPersonTitle.DataSource = dsTitles.Tables["Titles"];
However I want the initial value to be "Please select....." and not an item
from the database.
windows form.
I have a combo box set to dropdown list so users cannot add their own items
and I fill the data from a dataset in the following code
DataSet dsTitles = DataAccess.GetLookupItems("Titles", "Title");
cbPersonTitle.DisplayMember = "Title";
cbPersonTitle.ValueMember = "TitleID";
cbPersonTitle.DataSource = dsTitles.Tables["Titles"];
However I want the initial value to be "Please select....." and not an item
from the database.