dbgrid scrollbar issue
Posted: Fri 25 Sep 2009 02:32
If I drop an TOraSession, TOraQuery, TOraDataSource and a TDBGrid on a form, hook them all up, return many rows, and then CLOSE the TOraQuery with "OraQuery.close;", why does the scrollbar still display on the empty DBGrid as if it still had rows? I tried DBGrid.refresh, DBGrid.repaint, and Application.processmessages but nothing seems to work. I believe the DBGrid thinks the query is still active but the OraQuery believes itself to be closed. I checked the Forums for 'DBgrid' and 'Scrollbar' and was not able to find much. I know I must be brain dead stooopid since nobody else has this issue. My apologies in advance.
Update: I tried this with normal BDE Components and found that it does the same thing. So it's definitely not a problem with ODAC, it's a problem with ME thinking the old BDE behavior was different. Totally my bad. Sorry.
Update: I tried this with normal BDE Components and found that it does the same thing. So it's definitely not a problem with ODAC, it's a problem with ME thinking the old BDE behavior was different. Totally my bad. Sorry.