Why CellEditCallback of Uitable can't get data of the table in a function?
Show older comments
It works perfect without the first row. But in a function,it cannot get data when cell is edited. The Command Window show that "Error using handle.handle/get Invalid or deleted object.
Error while evaluating uitable CellEditCallback "
function mytable
f = figure;
d = randi(100, 7, 3);
t = uitable(f,'Data',d,'ColumnWidth',{50},...
'ColumnEditable', [true true true]);
set(t, 'CellEditCallback', 'get(t,''Data'')');
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!