I have code using a uitable, e.g:
tbl = uitable('Parent', fh, 'CellSelectionCallback',{@cell_select_callback fh});
I did a quick experiment and when using set(tbl,'Data',my_data)
the callback is triggered only if the set
causes the selected cell(s) to change, and this happens immediately (as far as I can tell - I saw no appreciable delay).
To stop that happening you could just unset the CellSelectionCallback
property, change the data, and then reset CellSelectionCallback
.