Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a table:

Table I want to be editable

I want it to be editable only where the zeros appear. I read this post Generating an editable table that can be used as input because it's almost exactly what I want, but I couln't figure out how to keep uneditable the first column AND the first row. I don't show the modifications I did because they wouldn't shed any light.

share|improve this question

1 Answer 1

I'll show you hoe to do it for a 3 x 3 matrix of values. You should be able to extend to 3 x 12 without much trouble

First do some initialization.

headers = {"Jan", "Feb", "Mar"};
rowLbls = {" ", "Tmax", "Tmed", "Tmin"};
valTbl = ConstantArray[0, {3, 3}];

Next build the spreadsheet.

      Array[InputField[Dynamic@valTbl[[#1, #2]], Number, FieldSize -> Tiny] &, {3, 3}],
  }] // TableForm


Finally a place to view the changes to valTbl as they occur.

Dynamic @ valTbl
{{0, 0, 0}, {0, 42, 0}, {0, 0, 0}}
share|improve this answer
That's what I was looking for. Thanks! – Mantizaurio Jun 13 '14 at 0:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.