grid probably memory problem

Hello

I have grid which works correcly when sql return 10K. But when I login to other user and sql return 200K records, grids don’t show.
Because it’s dynamic grid I can’t even choose columns.

How I can use this grid? Is there an option to limit records. Or meybe I should increase appache parameters?

I solved it. In php.ini option memory_limit.