On Sat, 11 Feb 2006 14:32:31 -0800, "Steve B."
<St****@discussions.microsoft.com> wrote:
Without adding whitespace to the ComboBox datasource is there a way I can add
a blank entry or, a reset entry, to the ComboBox dropdown
Thanks
Steve
If you mean you want to add a value to index zero of the combo box,
the way to do that is to populate the combo from the data source and
then add it by doing this:
private void FillButton_Click(object sender, EventArgs e)
{
string[] items = { "One", "Two", "Three" };
TestComboBox.Items.AddRange(items);
TestComboBox.Items.Insert(0, "Top Item");
TestComboBox.SelectedIndex = 0;
}
Otis Mukinfus
http://www.otismukinfus.com http://www.tomchilders.com