TableView does not allow the deletion of a cell. Am I misunderstanding the usefulness of this function? Should it only be used to visualize a matrix or is it also intended to edit, add and remove cells?
Any changes to the table are immediately visible in the output of the Dynamic[table123]
command. Further cell content is easily added and the rectangular matrix grows. However, deletions and subsequent shrinkage of the matrix do not work. One can note that the last character that one tries to delete in a filled cell cannot be removed.
I was quite disappointed by this behavior as well. When I read about TableView[] I immediately updated to 12.1, hoping to be able to build an easy to sue interface for data import.
But with TableView[] ignoring cell deletion this seems not feasible.
I wonder why the implementation was chosen to be like it is now.
The following works. Replace cells to be deleted with “x” and press “OK”, which will display a new TableView with the cells deleted. Pressing “Cancel” closes the dialog and the final data can be read from “table”.
The following additional issues make TableView[] rather useless (to me):
copy & paste works flawlessly within the TableView, but not from Excel or LibreOffice (\t and \n separated, instead the whole cell range is pasted into one cell)
copy & paste does not work at all when the TableView is displayed in a dialog
TableView[] has great potential for interactive input, but is not useable now. I wonder what Wolfram intended users to do with it in its current state.
On a slightly different tack, could options be provided to allow the content of table cells to be aligned (e.g. Alignment->Left) and wrapped when too large to fit the cell. It would also be useful to be able to specify row and column headings.