Reset uitable data
古いコメントを表示
Hy, i'm trying to reset the uitable of my GUI but its not working, I used:
set(handles.uitable,'Data','');
It apparently clean the data, but it also doesnt allow me to edit the uitable anymore. I had also used the function "reset":
reset(handles.uitable), But it didnt work either.
採用された回答
その他の回答 (2 件)
aveks Gebastyan
2018 年 8 月 12 日
0 投票
HI Walter Roberson. thanks for answer.. I have problem same how reset uitable. but it has been solved with your answer above....I have problem again, how to reset or remove checklist on the checkbox?. because I use the checkbox for insert data to uitable. so if we reset data in uitable, the cheklist in checkbox must be lost...
thanks..
5 件のコメント
Walter Roberson
2018 年 8 月 12 日
If [] does not work for those, then use 0 for them. 0 means unchecked.
aveks Gebastyan
2018 年 8 月 12 日
everything doesn't work..
set(handles.checkbox1,0);
or
set(handles.checkbox1,'0');
or
set(handles.checkbox1,[]);
Walter Roberson
2018 年 8 月 12 日
編集済み: Walter Roberson
2018 年 8 月 12 日
Are you asking about uicontrol style checkbox? If so then set their Value property to 0. set(handles.checkbox1, 'Value', 0)
I thought you were asking about uitable checkbox columns.
aveks Gebastyan
2018 年 8 月 12 日
thanks for answare my question. Thank you so much for your explanation. God Bless You..it's work..
aveks Gebastyan
2018 年 8 月 12 日
yes, my question about uicontrol checkbox.
set(handles.checkbox1, 'Value', 0)
thanks this work..
bekir poyraz
2019 年 5 月 29 日
0 投票
set(handles.uitable, 'Data', cell(size(get(handles.uitable,'Data'))));
thank you
カテゴリ
ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!