protected override void RefreshSources() { Datos.DataSource = EmpresaList.SortList(List, SortProperty, SortDirection); PgMng.Grow(string.Empty, "Ordenar Lista"); base.RefreshSources(); }
/// <summary> /// Toma la lista de bancos de la base de datos y rellena la tabla. /// </summary> protected override void RefreshMainData() { Bar.Grow(string.Empty, "Empresa"); _selected_oid = ActiveOID; List = EmpresaList.GetList(false); Bar.Grow(string.Empty, "Lista de Empresas"); }
/// <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); }