Only load e.g. 50 items. Loading thousands of items is a design mistake. (Beneath the user is not amused like Klaus mentioned). Your app may crash (memory issues) or uses a lot of ressources (network, database, etc.)
How do you define the Table?
And more specific, the number of columns?
From the error message it seems that, in the SetHeader method, the number of data in the array is to big.