If I use a DropDownList:
<asp:DropDownList ID="DropDownListSubContractors" runat="server"
DataTextField="Company_Name" DataValueField="id">
</asp:DropDownList>
What attribute do I use/set that allows me to use '---Select---' as initial option on the drop down, instead of the first value in the list.
You could now bind your DropDown in the code behind as usual to the datasource and this data source doesn't need to contain a default value item:
You can do this this way:
From Code behind:
Note: We use index 0 to make it the first element at the list.
You can use
Or you can add this dynamically at code behind like this