When looking at the contents of a dataset, the rows are loaded in the memory of DSS.
The memory allocated to sampling has its own limit, set by the administrator. This is to prevent crashing the browser with insane sample sizes.
You can find this setting in: administration->settings->Limits