protected override void RefreshSources() { Datos.DataSource = EmpresaList.SortList(List, SortProperty, SortDirection); PgMng.Grow(string.Empty, "Ordenar Lista"); base.RefreshSources(); }
/// <summary> /// Filtra la tabla /// </summary> /// <param name="oid">Identificar del elemento</param> protected override void SetFilter(bool on) { DataGridViewColumn col = ControlsMng.GetCurrentColumn(Tabla); try { Datos.DataSource = on ? _filter_results : EmpresaList.SortList(List, SortProperty, SortDirection); } catch (Exception) { Datos.DataSource = EmpresaList.SortList(List, SortProperty, SortDirection); } ControlsMng.OrderByColumn(Tabla, col, SortDirection); }