protected override long GetFirstRow()
        {
            long c = m_TableDisplay.GetRowCount();

            if (c <= 0)
            {
                return(-1);
            }
            return(0);
        }
Example #2
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())));
        }
Example #3
0
 public override Database.Table CreateFilter(Database.Table tableIn)
 {
     Database.Operation.GroupedTable tableOut = new Database.Operation.GroupedTable(tableIn, new ArrayRange(0, tableIn.GetRowCount()), GetColumnIndex(tableIn), m_Order, CreateGroupTable);
     return(tableOut);
 }
Example #4
0
 public override Database.Table CreateFilter(Database.Table tableIn)
 {
     return(CreateFilter(tableIn, new ArrayRange(0, tableIn.GetRowCount())));
 }
Example #5
0
 public override long GetRowCount()
 {
     return(table.GetRowCount());
 }