Is it possible to make a particular column in a tablefield readonly? Since in my case I have three columns A, B and C. A and B holds a data and C stores the summation of those data. I wrote a custom javascript to do that and also tried to make column C readonly through javascript but the problem is while in a table rebuild the data in column C clears out but if I didn't apply readonly on column C then data remains. Any suggestions in this case will be highly appreciated.
How are you applying the readonly to the fields?

You need to use the FAPI '#attributes' property to set readonly like this:

'#attributes' =&gt; array(
    'readonly'=&gt;'readonly',
);


You need to alter the form through hook_form_alter and addd the above property to the textfield you want readonly.