In the TListView control, you can edit an item by clicking on it twice. A box appears around the item for user to type in a new value. How can I enable edit mode programmatically? I would like to protect the list from accidental editing, and disable editing (by enabling the ReadOnly property). Then, when the user presses an Edit button, the item will become active to edit. How can I do this?
Also, if suppose the user selects an item, then scrolls out of that item’s view, then presses Edit, the list needs to first scroll to make that item visible.
After setting
ReadOnlyto false you can call theEditCaptionmethod. CallMakeVisibleto scroll the item in view.