How can I make uitable with editable columns؟؟؟

hi excuse me I have a problem,I make the uitable in GUI and column is editable but for 4 rows first is working but for another rows is not working and showing down message:
if true
Warning: Table data is not editable at this location.
> In fotbal>pushbutton1_Callback (line 222)
In gui_mainfcn (line 95)
In fotbal (line 16)
In @(hObject,eventdata)fotbal('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
In fotbal>pushbutton1_Callback (line 222)
In gui_mainfcn (line 95)
In fotbal (line 16)
In @(hObject,eventdata)fotbal('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
In fotbal>pushbutton1_Callback (line 222)
In gui_mainfcn (line 95)
In fotbal (line 16)
In @(hObject,eventdata)fotbal('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
end
thanks of your help

 採用された回答

Jan
Jan 2017 年 3 月 13 日
編集済み: Jan 2017 年 3 月 13 日

0 投票

I saw this before, when the format contained a popup menu, but the corresponding values did not contain a default value. So please check if the vector for 'ColumnEditable' has the required length (number of columns of teh data) and if all data contain initial values. See Answers: popup menu in uitable

1 件のコメント

ahmad hashemi
ahmad hashemi 2017 年 3 月 13 日
Thanks a lot,my problem resolved

サインインしてコメントする。

その他の回答 (1 件)

ES
ES 2017 年 3 月 13 日

0 投票

In the GUIDE window, you can double click the table object and set the Column Editable property by selecting Data.
If you want to do it programatically inside your GUI code, you can do
set(handles.uitable, 'ColumnEditable', [true, false, true.....]);

1 件のコメント

ahmad hashemi
ahmad hashemi 2017 年 3 月 13 日
ok I try both ways but still show masege

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

タグ

質問済み:

2017 年 3 月 13 日

コメント済み:

2017 年 3 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by