예제 #1
0
 protected void gvwMaster_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "EditRow")
     {
         int id = Convert.ToInt32(e.CommandArgument);
         RowID = id;
         mvwForm.SetActiveView(viwAddEdit);
         Bank branch = bankProvider.Get(id);
         txtName.Text        = branch.Name;
         chkIsActive.Checked = branch.IsActive;
         txtName.Focus();
     }
 }