Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
UITABLE, error deleting selected row
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponses (0)
Cette question est clôturée.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!