protected void gdvProcesso_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        DropDownList ddlMovimentacao     = (DropDownList)gdvProcesso.Rows[e.RowIndex].FindControl("ddlMovimentacao");
        Label        codigo_processo     = (Label)gdvProcesso.Rows[e.RowIndex].FindControl("lblProcesso");
        Label        codigo_movimentacao = (Label)gdvProcesso.Rows[e.RowIndex].FindControl("lblCodigo_movimentacao");

        if (ddlMovimentacao.SelectedItem.Text == "Selecione")
        {
            lblMensagemTopo.Text = "Dados alterados com Sucesso";
            divMensagemTopo.Attributes["class"] = "alert alert-success";
        }
        else
        {
            Movimentacao   mov   = new Movimentacao();
            MovimentacaoDB movDB = new MovimentacaoDB();
            Processo       pro   = new Processo();
            mov.Codigo           = Convert.ToInt32(ddlMovimentacao.SelectedItem.Value);
            pro.Codigo           = Convert.ToInt32(codigo_processo.Text);
            mov.Processo         = pro;
            mov.DataMovimentacao = DateTime.Today;

            int codigo = Convert.ToInt32(codigo_movimentacao.Text);

            if (movDB.Finaliza(codigo))
            {
                if (movDB.Insert(mov))
                {
                    gdvProcesso.EditIndex = -1;
                    CarregaProcesso(Convert.ToInt32(Session["Advogado"]));
                }
                else
                {
                    lblMensagemTopo.Text = "Erro ao alterar status";
                    divMensagemTopo.Attributes["class"] = "alert alert-danger";
                }
            }
        }
    }