Yeah, there is a bug with the ListView. Putting in the code
MyListView.HandleNeeded;
before you do anything to it (which will be before it becomes visible,
or you wouldn't have this problem) should fix things.
Cheers,
Carl Reynolds Ph: +64-9-4154790
CJN Technologies Ltd. Fax: +64-9-4154791
[EMAIL PROTECTED] DDI: +64-9-4154795
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/
> -----Original Message-----
> From: Aaron Scott-Boddendijk [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, August 02, 1999 2:21 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: TListView and Updating an item
>
> I have a number of forms with TListViews in Report mode
>
> Everythings fine with the use of the control, loading it up, etc...
> for static data...
>
> unfortunately I want to have an edit dialog connect to the data in the
> object associated
> with each list item...
>
> 1. Objects read from DB - Object selfload into the listview.
> 2. User opens dialog with object to be edited.
> 3. Changes are made to the object, the listItem and the Database
> 4. Dialog closes.
>
> At step 4 the changes to the listitem have not displayed... All
> properties of the listItem
> check out correctly using debug code but still the listview displays
> the data before the
> update.
>
> Note that TListItem.Update doesn't do it, nor does
> TLIstItem.Makevisible or TListView.Invalidate.
>
> Any known bugs in this area or guesses as to what I can do to notify
> the ListView that one of it's
> items has changed.
>
> Also has anyone noticed that ListItem.Assign(AnotherListItem) causes
> the TListView
> checkboxes property to be enabled.
>
> --
> Aaron Scott-Boddendijk
> Jump Productions
> (07) 838-3371 Voice
> (07) 838-3372 Fax
>
>
>
> ----------------------------------------------------------------------
> -----
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
application/ms-tnef