Akhter HUssain

Akhter HUssain

  • 720
  • 1.3k
  • 101.9k

Edit Row selected in gridview ,dropdown value get changed.

Sep 5 2019 4:12 AM
i am editing row from gridview ,then section column value get change in Popup window ,here is image for your consideration.
 i want same value which exit in row section column ,in popup window .
here is my c# code ..for edit row
 
  1. protected void Edit(object sender, EventArgs e)  
  2.       {  
  3.           using (GridViewRow row = (GridViewRow)((LinkButton)sender).Parent.Parent)  
  4.           {  
  5.               txtEmpID.ReadOnly = true;  
  6.               txtEmpID.Text = row.Cells[0].Text;  
  7.               txtEmpName.Text = row.Cells[1].Text;  
  8.               txtFahterName.Text = row.Cells[2].Text;  
  9.              ddlSecID.SelectedItem.Value = row.Cells[3].Text;  
  10.   
  11.               popup.Show();  
  12.           }  
  13.       }  

Answers (2)