If I remember correctly, you need to maintain the contents of the cells
separately, ie. in the OnDrawCell event handler, you must supply the text
for all the cells from a underlying data source.

Regards
Cheng

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, 8 September 2000 02:58
To: Multiple recipients of list delphi
Subject: [DUG]: Owner Draw on grids


Hi All.

I am writting a control that ownerdraws items into cells of a string grid.
The problem I am experiencing is that when I scroll the grid, then scroll it
back, the cells dont seem to update properly.

i.e. If I scroll down, teh nscroll up, the first few cells have data from
previous cells in them...i.e. the data in the cells is wrong.

I cant remember what causes this, and I cant remember how to fix it....can
someone PLEASE help my out here ?

Cheers, Jeremy Coulter



Jeremy Coulter (Manager)
Visual Software Solutions
Christchurch, New Zealand
PH 03-3521595
FAX 03-3521596
MOBILE 021-2533214
www.vss.co.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to