private void GetAllRows() { string oCol = OwnerColumn; string oID = OwnerID; if (func.IsAdminUser() || func.GetsAdvSecurityMethod(strTableName) == "2") { oCol = string.Empty; oID = string.Empty; } { collection = controller.FetchAllPaged((PageNumber - 1) * PageSize, PageSize, OrderBy, oCol, oID); numrows = controller.FetchAllCount(oCol, oID); } }