How can i clear a row or all rows of UItable in AppDesigner?
17 次查看(过去 30 天)
显示 更早的评论
clear one row:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/988030/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/988030/image.jpeg)
clear all rows: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/988035/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/988035/image.jpeg)
what i wanted is shown in these pictures, how can i do this? I'd appreciate some help.
3 个评论
回答(1 个)
Mitch Lautigar
2022-5-5
For UItables, you need to set "editable" to on so you can change the values of the table programatically. After that, it's just a matter of stepping through the UI structure to get to the table parameters. I have two things to point you too in the hopes it helps.
- https://www.mathworks.com/matlabcentral/answers/40789-is-there-a-way-to-delete-a-whole-row-in-a-uitable-by-clicking-a-delete-row-button --- This question was asked previously, and helped me to do this in a personal GUI of mine.
- https://www.mathworks.com/help/matlab/ref/matlab.ui.control.table-properties.html --- This has table properties. The property you are looking for I believe is "data"
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!