示例#1
0
    protected void gv_listar_Sorting(object sender, GridViewSortEventArgs e)
    {
        string direccion = utils.ConvertSortDirectionToSql((String)ViewState["sortOrder"]);

        ViewState["sortOrder"]     = direccion;
        ViewState["sortExpresion"] = e.SortExpression + " " + direccion;
        ObtenerParametros(false);
    }
示例#2
0
    protected void gv_listar_Sorting(object sender, GridViewSortEventArgs e)
    {
        string direccion = utils.ConvertSortDirectionToSql((String)ViewState["sortOrder"]);

        ViewState["sortOrder"]     = direccion;
        ViewState["sortExpresion"] = string.Format("{0} {1}", e.SortExpression, direccion);
        ObtenerTrailer(false);
    }
示例#3
0
    public void gv_listaTrailer_Sorting(object sender, GridViewSortEventArgs e)
    {
        string direccion = utils.ConvertSortDirectionToSql((String)ViewState["sortOrder"]);

        ViewState["sortOrder"]     = direccion;
        ViewState["sortExpresion"] = e.SortExpression + " " + direccion;
        ObtenerTrailer(false);
    }
示例#4
0
    public void gv_listaTipoEstadoMov_Sorting(object sender, GridViewSortEventArgs e)
    {
        string direccion = utils.ConvertSortDirectionToSql((String)ViewState["sortOrder"]);

        ViewState["sortOrder"] = direccion;
        DataView view = new DataView();

        if (ViewState["lista"] == null)
        {
            TipoEstadoMovBC tem = new TipoEstadoMovBC();
            view.Table = tem.obtenerTodoTipoEstadoMov();
        }
        else
        {
            view.Table = (DataTable)ViewState["lista"];
        }
        view.Sort = e.SortExpression + " " + direccion;
        ViewState["sortExpresion"]            = e.SortExpression + " " + direccion;
        ViewState["lista"]                    = view.Table;
        this.gv_listaTipoEstadoMov.DataSource = view;
        this.gv_listaTipoEstadoMov.DataBind();
    }