private void resetarSenhaToolStripMenuItem_Click(object sender, EventArgs e) { string t = grdUser.Rows[cellClicked].Cells[0].Value.ToString(); var user = from p in lstUser where p.IdUsuario == Convert.ToInt32(t) select p; BllUser blluser = new BllUser(); foreach (var u in user) { u.Password = "******"; blluser.ResetPassword(u); } MetroFramework.MetroMessageBox.Show(this, "Usuário cadastrado com sucesso.", "OK", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); }