Answers for "How to get selected item from Dropdown in GridView"

0

How to get selected item from Dropdown in GridView

protected void LinkButton1_Click(object sender, EventArgs e)
{
  LinkButton lnkBtn = (LinkButton)sender;
  GridViewRow row = (GridViewRow)lnkBtn.NamingContainer;
  DropDownList ddl= (DropDownList)row.FindControl("DropDownList1");
  TextBox1.Text = ddl.SelectedValue.ToString();
}
Posted by: Guest on August-30-2021

Code answers related to "How to get selected item from Dropdown in GridView"

Browse Popular Code Answers by Language