Guest User

Untitled

a guest
Feb 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. protected void ClintUsr_RowCommand(object sender, GridViewCommandEventArgs e)
  2. {
  3. ClintUsr.Columns[1].Visible = true;
  4. ClintUsr.Columns[3].Visible = true;
  5. ClintUsr.Columns[4].Visible = true;
  6.  
  7. if (e.CommandName == "Edit")
  8. {
  9. ImageButton Editimg = (ImageButton)e.CommandSource;
  10.  
  11. GridViewRow row = (GridViewRow)Editimg.NamingContainer;
  12.  
  13. LUser.Text = row.Cells[1].Text;
  14. txtusrname.Text = row.Cells[2].Text;
  15. // txtpass.Text = row.Cells[3].Text;
  16. txtpass.Attributes["value"] = Convert.ToString(row.Cells[3]);
  17. ddclientID.SelectedValue = row.Cells[4].Text;
  18. ddactive.SelectedValue = row.Cells[6].Text;
  19. ddactive.DataBind();
  20. bind();
  21.  
  22.  
  23. }
  24. else
  25. {
  26.  
  27. }
  28. ClintUsr.Columns[1].Visible = false;
  29. ClintUsr.Columns[3].Visible = false;
  30. ClintUsr.Columns[4].Visible = false;
  31.  
  32.  
  33.  
  34. }
Add Comment
Please, Sign In to add comment