Editing Text in the List
The list area of the control can provide a direct edit interface for the resource items being Listd. Providing the user with the ability to directly edit items in the list can be accomplished in two different ways.
1. When the LabelEdit property is set to true, the user is able to modify the text of an item by clicking the item text to select it and then clicking the item text again to put the label text into edit mode.
2. Use the EditCell method to put the control into edit mode at a certain line item or cell.
The user can then modify or replace the item's or cell’s text label. The developer can use the BeforeCellEdit and AfterCellEdit events to perform tasks before and after the user edits an item's text. The text of child line items can also be modified if the control is in edit mode.
To leave the edit mode, the user can press the <Esc> key (which restores the original text), the <Enter> key (which writes back the current text), or cause the edit label to lose focus by clicking or tabbing off of it (which will also write back the current text).
Items that cannot be edited
There are certain conditions that prevent a line item or cell from being edited. These include.
· The line item has been marked as read only or defined as a header.
· The column has been marked as read only, or has been defined as an image or Boolean.
· If there is not enough room to place the edit label on the list.