Hi, how can i add a new item manually to a dropdownlist which is connected to a SQLDataSource?
This is my current code:
But is not displaying the new item ":: Seleccione ::" along with the other items extracted from the table.
This is my current code:
Code:
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataGrupo" DataTextField="Descripcion"
DataValueField="IdGrupo" Style="position: relative">
<asp:ListItem Selected="True" Value="0">:: Seleccione ::</asp:ListItem>
</asp:DropDownList><asp:SqlDataSource ID="SqlDataGrupo" runat="server" ConnectionString="<%$ ConnectionStrings:SIPConnectionString %>"
SelectCommand="SELECT * FROM [Grupo]"></asp:SqlDataSource>