Got the following error: table data is not editable at this location
Show older comments
Hi all,
I have a uitable. When I run the code and try and set a value to the table I get the error above and when I look at the evendata structure values I see:
- Indices is correct
- Prev' Data is [] which is correct
- Edit Data holds the new data I chose (is correct)
- New Data is [] -> WHY?? why isn't it equal to Edit Data?
- Error = "table data is not editable at this location"
What am I missing? I have cells as editable.
Here is the uitable code (I shorted it a bit for the unnecessary parts)
ColumnFormat = {{' ' 'STA1' 'STA2' 'STA3' 'STA4'},...
{' ' 'Voice' 'Video' 'Best Effort' 'Background'},...
'numeric',...
'numeric',...
'numeric',...
'numeric',...
'numeric',...
{' ' 'Poason' 'Syncronious'},...
{' ' 'TCP' 'UDP' 'G711'},...
{' ' 'None' 'WEP' 'TKIP'},...
'numeric'};
ColumnEditable = [true true true true true true true true true true false];
handles.STADataTable(STANumber) = uitable(...
'Parent',handles.STAPanel(STANumber),...
'units','pixels',...
'ColumnWidth','auto',...
'ColumnFormat',ColumnFormat,...
'ColumnEditable',ColumnEditable,...
'CellEditCallback',{@STADataTable_Callback,handles},...
'Position',[48 5 1039 19*3+2]);
6 Comments
Walter Roberson
on 6 Mar 2013
Were you trying to edit column 11 ? You have it marked false for editable.
Nimrodb
on 6 Mar 2013
Nimrodb
on 6 Mar 2013
Walter Roberson
on 6 Mar 2013
repmat({''}, 1, TableColumnSize(1))
would be one way. Or
TempRow = cell(1,TableColumnSize(1)); TempRow(:) = {''};
Nimrodb
on 7 Mar 2013
Walter Roberson
on 7 Mar 2013
Yes.
Answers (0)
Categories
Find more on Logical 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!