Gambas Documentation - /comp/gb.form/tableview/edit

/comp/gb.form/tableview/edit

# TableView.Edit (gb.form)

Sub Edit ( [ List As String[], ReadOnly As Boolean ] )

Starts editing the current cell.

- If List is defined, then the cell will be edited with a ComboBox control filled with the List string array.

- If ReadOnly is defined and is TRUE, then the ComboBox will be read-only.

Otherwise, the cell will be edited with a TextBox control.

This method must be called during the Click event. If you don't call the Edit method during this event, the cell will be assumed to be read-only, and will be ignored when using the arrow keys.