TCRDBGrid problem
Posted: Fri 26 Jan 2007 17:00
I dont know if this is a bug or an I doing something wrong.
Using TCRBDGrig and OptionsEx.dgeLocalsorting := true with TORaQuery and NonBlocking = True I'm receiving a "ORA-01002 Fetch out of sequence" error when I try to Prepare the query after modifing the grid order.
The steps to reproduce the error using the demo provided with ODAC CRDBGrid.dpr with BDS 2006.
1. Change Oraquery.Nonblocking := True
2. Enable Localsorting in the CRDBGrid.
2. Change the code of onClick event of btOpen to
3.Compile and run the program
4.Open the query
5.Change the order by clicking in one of the titles
6. Close the query
7. Open again
8. Now I receive the error.
I hope this can help, if I did something worng pelase tell me.
Best regards.
Alexandre.
Using TCRBDGrig and OptionsEx.dgeLocalsorting := true with TORaQuery and NonBlocking = True I'm receiving a "ORA-01002 Fetch out of sequence" error when I try to Prepare the query after modifing the grid order.
The steps to reproduce the error using the demo provided with ODAC CRDBGrid.dpr with BDS 2006.
1. Change Oraquery.Nonblocking := True
2. Enable Localsorting in the CRDBGrid.
2. Change the code of onClick event of btOpen to
Code: Select all
procedure TMainForm.btOpenClick(Sender: TObject);
begin
if not OraQuery.Prepared then
OraQuery.Prepare;
OraQuery.Open;
end;
4.Open the query
5.Change the order by clicking in one of the titles
6. Close the query
7. Open again
8. Now I receive the error.
I hope this can help, if I did something worng pelase tell me.
Best regards.
Alexandre.