Ejemplo n.º 1
0
        public override Database.Table CreateFilter(Database.Table tableIn)
        {
            if (SortLevel.Count == 0)
            {
                return(tableIn);
            }

            // make sure we can get an accurate row count
            tableIn.ComputeRowCount();

            // This is a temporary fix to avoid sorting sub tables entries with top level entries.
            // the real fix involve sorting sub tables entries as part of the group head
            if (tableIn is ExpandTable)
            {
                var et = (ExpandTable)tableIn;
                et.ResetAllGroup();
            }

            return(CreateFilter(tableIn, new ArrayRange(0, tableIn.GetRowCount())));
        }