Checkboxes in row of UITable
22 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2018 年 10 月 9 日
回答済み: MathWorks Support Team
2018 年 10 月 9 日
How do I set up one row of checkboxes just below the variable names in my UITable?
採用された回答
MathWorks Support Team
2018 年 10 月 9 日
This can be done by using cell array data in the UITable and assigning the top row of the cell array to logical values.
The following code is an example that shows how this can be done:
>> t = uitable(uifigure)
>> d = {true, false, true};
>> d(2:50,1:3) = {rand(1,1)};
>> t.Data = d
>> t.ColumnEditable = true;
>> t.ColumnName = ["a" "b" "c"];
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!