I would like to swap out my asp:DropDownList with your ComboBox but I need to have these two things solved first.
1. How do you set the default item? below is the asp:DropDownList
2. How do you add an item to the list and have it at the top when binding other items from a database? below is the asp:DropDownList
Thanks for the help!
1. How do you set the default item? below is the asp:DropDownList
DropDownList1.Items.FindByValue("0").Selected = true |
2. How do you add an item to the list and have it at the top when binding other items from a database? below is the asp:DropDownList
userList.TypeID = (int)Enumeration.ContactType.Consultant; |
DropDownList1.DataSource = userList.GetUsersByContactType; |
DropDownList1.DataTextField = "CONTACT_NAME"; |
DropDownList1.DataValueField = "ID"; |
DropDownList1.DataBind(); |
DropDownList1.Items.Add(new ListItem("All", "0")); //This Line |
Thanks for the help!