Thank you very much Vlad, it was exactly what I needed !
However, I still have a little problem : after doing this, I get an error when I try to close my connection using SQLDISCONNECT() saying that the call is not valid during a SQLEXEC() call (traduction from french). I only get the error when I reach the bottom of the grid (so all the records are fetched)...
Any idea ?
Thanks again !