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); }
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); }
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); }
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(); }