Edit selective rows in a table

Hello,

 How can I allow editing only some specific rows in a table? I want to have some rows editable, while the others should be only readable.

Thank you very much!