Hi
I have a drop down list that is databound this way..
But I would like to add a default value like this...
But I don't know how to, is this possible at all?
Regards
I have a drop down list that is databound this way..
Code:
MyConnection.Open()
MyCommand = New SqlCommand("dbo.p_ShowProducts", MyConnection)
MyCommand.CommandType = CommandType.StoredProcedure
MyDataReader = MyCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
DropDownListProducts.DataSource = MyDataReader
DropDownListProducts.DataBind()
But I would like to add a default value like this...
Code:
DropDownListProducts.Items.Insert(0, "All products....")
But I don't know how to, is this possible at all?
Regards