Ok, I have a DropDownList that is bound to a dataset:
DropDownList1.DataSource = ds.Tables.DefaultView;
DropDownList1.DataTextField = "name";
DropDownList1.DataValueField = "category_id";
I would like to add a blank entry like "-- None Selected --" to the top of the list. I tried this, but it's not what I'm looking for:
DropDownList1.Items.Add(new ListItem("-- None Selected --",""));
If I place the above line before binding, it get blown away. If I do it after binding, it puts it at the bottom of the list. Is there any way to make it go to the top?