Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Apr : intermittant scrollbar

www.cryer.info
Managed Newsgroup Archive

intermittant scrollbar

Subject:intermittant scrollbar
Posted by:"Fabien" (fabi..@toast.net)
Date:Thu, 21 Apr 2005 11:40:23

There is a master/detail relationship between DBGrid1 (Master) and DBGrid2
(Detail).  When a record from DBGrid1 is selected that does not have any
records to show in DBGrid2, the scrollbar is not shown in DBGrid2(as
expected).  Afterwards, the scrollbar in DBGrid2 isn't shown for a DBGrid1
selection that has DBGrid2 records.

If selection is made on DBGrid1 enough times, then the scrollbar will be
shown on DBGrid2 and then if click on a DBGrid1 record that doesn't have the
records in DBGrid2, the scrollbar will be shown in DBGrid2.

I put a ShowScrollBar(DBGrid2.Handle, SB_VERT, TRUE); in the DBGrid1OnClick
event handler, but there is no change.

Any ideas out there to correct this?  Thx ahead.

Replies:

www.cryer.info
Managed Newsgroup Archive