Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

UITABLE, error deleting selected row

4 visualizaciones (últimos 30 días)
Kai
Kai el 29 de Nov. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello everybody,
I have a problem deleting data from the uitable.
Let's say the table has 3 rows, the autmatically set index for the selected row is 1. When I delete a single row without selecting it everything works fine. When I delete the last row the new data set for the table is empty, this also works fine.
When I select a certain row the index of the selected row is set through the CellSelectionCallback. But when I try to delete rows that were selected there will be a problem with the last row. When I delete the last row I use the following command:
set(table, 'Data', []);
and I get the following error message:
"Reference to non existent element of a cell array".
This error message can not be caught using try-catch. Any suggestions what I can do to avoid this?
Greets, Kai

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by