How to resize uitable?

조회 수: 1 (최근 30일)
Gurvinder
Gurvinder 2013년 8월 15일
I have a uitable extracting data from a database in my GUI which is displayed upon a click of a button.
I am sending 3 columns of data, however only one column appears with a horizontal scroll bar. I want the table to re-adjust the size depending on he number of columns sent as this can be seleced from 1-3.
Here is my code so far:
FinalOut = [Output, Output2, Output3]; disp(FinalOut);
ColNames = {TableType; TableType2; TableType3}; disp(ColNames);
uitable(handles.figure1,'Data',FinalOut,'ColumnName',ColNames,'Position',[250 20 150 300]);
Is there a way to make this table more flexible/dynamic depending on the columns of data sent, so the width of the table only is changed as data is loaded in?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by