On Mon, 13 Mar 2006 14:00:40 +0530, "Chakravarti Mukesh"
<cm*****@sparshindia.com> wrote:
Hi,
I am filling a combo by using a table of our database. If I want "Select
your option" at first position. How can I add this?
Thanks
To make sure your text stays at the top of the list do this:
1. fill the combobox with the other data.
2. add "<Select your option>" at item[0]
private void TestDialog_Load(object sender, EventArgs e)
{
comboBox1.Items.Add("Item1");
comboBox1.Items.Add("Item2");
comboBox1.Items.Insert(0, "<Select from list>");
comboBox1.SelectedIndex = 0;
}
Otis Mukinfus
http://www.arltex.com http://www.tomchilders.com