Page 1 of 1

TSmartQuery : Set EOF = True after 1000 Records

Posted: Sun 27 Aug 2006 21:07
by jfudickar
Hi,

i'm using the TSmartQuery with the DevExpress Grid Control.

IF the grid control is in the Enhanced Mode (GridMod = False) it fetches all Records until EOF.

I want to give the user the option to cancel the fetch process using the BeforeFetch Event.

The problem is that setting "Cancel = True" stops only the current execution, but didn't change the eof, and then the grid ignores this and tries to fetch again.

Is there any chance to solve this problem?

The DOA Components have something similar, there it was no problem.

Greetings and thanks
Jens

Posted: Fri 01 Sep 2006 07:01
by Plash
Currently ODAC doesn't have such feature. But in next biuld of ODAC TSmartQuery component will set EOF to True if you set to True AutoClose option of the component and set Cancel parameter in BeforeFetch event.

Posted: Fri 01 Sep 2006 11:19
by jfudickar
This is a good news.

Did you have a timeframe for this?

Greetings
Jens

Posted: Fri 01 Sep 2006 11:35
by Plash
New build of ODAC will be available in a month or later. If you use ODAC Professional we can send you the fix for ODAC sources.