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

/comp/gb.form/tableview/.save

# Event TableView.Save (gb.form)

Event Save ( Row As Integer, Column As Integer, Value As String )

This event is raised when some value must be saved in a specified cell.

- Row is the cell row.

- Column is the cell column.

- Value is the value to be saved.

The Save event means that you have to save the new data somewhere, because the TableView won't do it for you. The new data to save is the third argument of the Save event handler.

Then it's up to you to decide if you store the actual TableView contents inside the TableView (i.e. by setting the Text property of the cell explicitely), or if you provide the contents through the Data event.

The Save() method is called to trigger all that process (it means "do raise the Save event"). It actually saves nothing. So don't call it from the Save event handler!