protected void grvVista_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
        {
            try
            {
                if (e.Row.RowType == DataControlRowType.Pager)
                {
                    Label lblTotalNumDePaginas = (Label)e.Row.FindControl("lblBandejaTotal");
                    lblTotalNumDePaginas.Text = grvVista.PageCount.ToString();

                    TextBox txtIrAlaPagina = (TextBox)e.Row.FindControl("txtBandeja");
                    txtIrAlaPagina.Text = (grvVista.PageIndex + 1).ToString();

                    DropDownList ddlTamPagina = (DropDownList)e.Row.FindControl("ddlBandeja");
                    ddlTamPagina.SelectedValue = grvVista.PageSize.ToString();
                }

                if (e.Row.RowType != DataControlRowType.DataRow)
                {
                    return;
                }

                if (e.Row.DataItem != null)
                {
                    stp_getListaPaginas_Result _mdl = (stp_getListaPaginas_Result)e.Row.DataItem;
                    ImageButton ibtEstatus          = (ImageButton)e.Row.FindControl("imbEstatus");
                    ibtEstatus.Attributes.Add("onclick", "javascript:return confirm('¿Desea realizar el cambio de estatus del item seleccionado?');");
                    if ((bool)_mdl.bitActivo)
                    {
                        ibtEstatus.ImageUrl = @"~/Images/ic_action_tick.png";
                    }
                    else
                    {
                        ibtEstatus.ImageUrl = @"~/Images/ic_action_cancel.png";
                    }
                }
            }
            catch (Exception eGUP)
            {
                Log.EscribeLog("Existe un error en grvVista_RowDataBound: " + eGUP.Message, 3, Usuario.vchUsuario);
            }
        }
        protected void grvVista_RowCommand(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e)
        {
            try
            {
                string intRELUsuarioBotonID    = "";
                stp_getListaPaginas_Result mdl = new stp_getListaPaginas_Result();
                switch (e.CommandName)
                {
                case "Estatus":
                    intRELUsuarioBotonID = e.CommandArgument.ToString();
                    break;

                case "viewEditar":
                    intRELUsuarioBotonID = e.CommandArgument.ToString();
                    ScriptManager.RegisterStartupScript(Page, Page.GetType(), "myModal", "$('#myModal').modal();", true);
                    break;
                }
            }
            catch (Exception eRU)
            {
                Log.EscribeLog("Existe un error grvVista_RowCommand: " + eRU.Message, 3, Usuario.vchUsuario);
            }
        }