protected void gridGebruiker_RowUpdating(object sender, GridViewUpdateEventArgs e) { classes.databasemanager dm = new classes.databasemanager(); string id = ((Label)gridGebruiker.Rows[e.RowIndex].FindControl("lblID")).Text; string gebruikersnaam = ((TextBox)gridGebruiker.Rows[e.RowIndex].FindControl("txtEditNaam")).Text; string wachtwoord = ((TextBox)gridGebruiker.Rows[e.RowIndex].FindControl("txtEditWachtwoord")).Text; string klantid = ((TextBox)gridGebruiker.Rows[e.RowIndex].FindControl("txtEditKlantid")).Text; string rol = ((TextBox)gridGebruiker.Rows[e.RowIndex].FindControl("txtEditRol")).Text; dm.updateuser(id, gebruikersnaam, wachtwoord, klantid, rol); gridGebruiker.EditIndex = -1; databind(); }