Exemple #1
0
        protected override void RefreshSources()
        {
            Datos.DataSource = EmpresaList.SortList(List, SortProperty, SortDirection);
            PgMng.Grow(string.Empty, "Ordenar Lista");

            base.RefreshSources();
        }
Exemple #2
0
        /// <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);
        }