Sanjay Kumar

Sanjay Kumar

  • NA
  • 5k
  • 4.4m

How to add DropdownList in GridView1

Dec 14 2013 4:40 AM
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)