Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void ClintUsr_RowCommand(object sender, GridViewCommandEventArgs e)
- {
- ClintUsr.Columns[1].Visible = true;
- ClintUsr.Columns[3].Visible = true;
- ClintUsr.Columns[4].Visible = true;
- if (e.CommandName == "Edit")
- {
- ImageButton Editimg = (ImageButton)e.CommandSource;
- GridViewRow row = (GridViewRow)Editimg.NamingContainer;
- LUser.Text = row.Cells[1].Text;
- txtusrname.Text = row.Cells[2].Text;
- // txtpass.Text = row.Cells[3].Text;
- txtpass.Attributes["value"] = Convert.ToString(row.Cells[3]);
- ddclientID.SelectedValue = row.Cells[4].Text;
- ddactive.SelectedValue = row.Cells[6].Text;
- ddactive.DataBind();
- bind();
- }
- else
- {
- }
- ClintUsr.Columns[1].Visible = false;
- ClintUsr.Columns[3].Visible = false;
- ClintUsr.Columns[4].Visible = false;
- }
Add Comment
Please, Sign In to add comment