Prakash Vasaikar

Prakash Vasaikar

  • 2.1k
  • 73
  • 1.9k

dropdown value not get

Sep 20 2018 5:14 AM
<asp:GridView runat="server" ID="gview" AutoGenerateColumns="false" class="table table-hover" OnRowDataBound="gview_RowDataBound">
<Columns>
<asp:TemplateField HeaderText ="Description">
<ItemTemplate>
<asp:TextBox ID ="txtDescription" Enabled="true" runat="server" Text='<%# Bind("Description") %>' class="form-control w-100"/>
</ItemTemplate>
</asp:TemplateField>
 
textbox get value right
 
BUT dropdown value not get so plz help and how to get value in dropdown
 
<asp:TemplateField HeaderText ="Service Category">
<ItemTemplate>
<asp:DropDownList runat="server" ID="ddlServiceCategory" SelectedValue='<%# Eval("ServiceCateName") %>' class="form-control w-150"></asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
 
and fast answer me
 
</Columns>
</asp:GridView>

Answers (5)