Author: brgdotnet | Posted on: 7/26/2009 7:03:13 PM | Views : 778

 I have a drop down list box that is loaded from a sqlDataSource object. I want to initialize the drop down listbox so that the first item says something like " ** Select **"
How do I do this?  I tried initializing it in my code behind file but it didn't work. How can I have the first item as **Select** even though the other values come from a data source?
ListItem listItem = new ListItem();
            listItem.Value = "0";
            listItem.Text = "**Select **";
            ddlGroupNames.Items.Insert(0, listItem);
...

Go to the complete details ...