1
Answer

How to add DropdownList in GridView1

Sanjay Kumar

Sanjay Kumar

11y
977
1
My GridView1 this type without  <ItemTemplate>
 
 <asp:GridView ID="GridView1" runat="server" DataKeyNames="EmpId"
  AllowPaging="True" >
  </asp:GridView>
 
GridViewUpdateEvent(update)
 
com.Parameters.AddWithValue("@Status", ((TextBox)GridView1.Rows[e.RowIndex].Cells[2].Controls[0]).Text.ToString());


.Cs

 
com.Parameters.AddWithValue("@Status", ((DropDownList)GridView1.Rows[e.RowIndex].Cells[2].Controls[0]).Text.ToString());


Answers (1)