UITable.RowName='numbered'; does not work since upgrade to v2021
7 views (last 30 days)
Show older comments
Just updated to matlab v2021.
The UITable control does not seem to dispaly the table index. It worked without issues in previous releases.
The RowName propery is set to 'numbered' in the App Designer:
Table:
At runtime, if i insert a breakpoint before the table is being refreshed and manually edit the value for RowName (retype the word numbered) the index shows up.
Table:
Thank you in advance for any suggestions.
3 Comments
Accepted Answer
Adam Danz
on 10 Jun 2021
The 'numbered' option still works in R2021a when I test it using the two examples below (which could be added to your app's startup function) and the 'numbered' option also works when I define "RowName" in AppDesigner>Design Mode as numbered (without quotes).
Are you getting an error? If not, what do your row names look like?
Is there another part of your app that interacts with the uitable?
T = array2table(rand(5,4));
uif = uifigure();
uit =uitable(uif, 'data',T,'RowName','numbered')
T = array2table(rand(5,4));
uif = uifigure();
uit =uitable(uif, 'data',T)
uit.RowName = 'numbered'
2 Comments
Adam Danz
on 12 Jun 2021
When I try that in app designer (r2021a) I don't have any problems.
Have you tried setting RowName to numbered within DesignView (and then removing the RowName line from the startup function)(see below)?
If that doesn't work, please attach the app and instruction to produce the table, if needed. You may need to attach the app in a zip file, I forget if mlapp attachments are allowed.
More Answers (1)
See Also
Categories
Find more on Interactive Control and Callbacks 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!