private void GetAllRows()
    {
        string oCol = OwnerColumn;
        string oID  = OwnerID;

        if (func.IsAdminUser() || func.GetsAdvSecurityMethod(strTableName) == "2")
        {
            oCol = string.Empty;
            oID  = string.Empty;
        }
        if (Mastertable == "AKTOR")
        {
            IDictionary <string, object> par = new Dictionary <string, object>();
            par.Add("NIP", this.Session[strTableName + "_masterkey1"]);
            collection = controller.FetchForDetails(par, (PageNumber - 1) * PageSize, PageSize, OrderBy, oCol, oID);
            numrows    = controller.FetchForDetailsCount(par, oCol, oID);
        }
        else
        if (Mastertable == "PBJ")
        {
            IDictionary <string, object> par = new Dictionary <string, object>();
            par.Add("KODEPBJ", this.Session[strTableName + "_masterkey1"]);
            collection = controller.FetchForDetails(par, (PageNumber - 1) * PageSize, PageSize, OrderBy, oCol, oID);
            numrows    = controller.FetchForDetailsCount(par, oCol, oID);
        }
        else
        {
            collection = controller.FetchAllPaged((PageNumber - 1) * PageSize, PageSize, OrderBy, oCol, oID);
            numrows    = controller.FetchAllCount(oCol, oID);
        }
    }