Set Column and Row visibility in uitable

조회 수: 57(최근 30일)
Daniele Morello
Daniele Morello 2015년 9월 18일
답변: Michele Paoletti 2021년 8월 31일
hi everyone, my question is: it's possible to set visibility for each column and row inside a uitable?

답변(3개)

Adam
Adam 2015년 9월 18일
Not with pure Matlab. The level of customisation of uitable is very limited using only Matlab functionality. It may be possible using java programming of the underlying components as described in various posts on Yair Altman's blog but I don't recall seeing anything explicitly about visibility.
Can't you just dynamically add and remove rows and columns you want hidden?
  댓글 수: 1
Daniele Morello
Daniele Morello 2015년 9월 18일
thanks for the answer. By the way, my idea was to use some checkboxes, and some "set" function to set visibility of the columns (or rows). if i have to use more code lines, it become quite hard because they're 26 columns.

댓글을 달려면 로그인하십시오.


Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2020년 12월 15일
Hello Daniele Morello,
You can just change the ColumnWidth to hide(invisible) the column
Example:
If you want to hide column 4 in uitable you can set the below property value
'ColumnWidth',{50,275,200,0,225,100}
I know am too late to answer this question, but it will be helpful for others
Thanks
  댓글 수: 2
Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2021년 3월 26일
Hi Alexander,
i tried it in GUI based on GUIDE. It worked, i didnt try it in appdesigner sorry:( @Alexander Miniovich

댓글을 달려면 로그인하십시오.


Michele Paoletti
Michele Paoletti 2021년 8월 31일
I have the same problem. I have created a table with 3 columns in app designer but I want enable or disable some rows to see the change in a graph without using a checkbox.

범주

Find more on Migrate GUIDE Apps 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!

Translated by