How to toggle_enable a particular row?

Hi,
cur_frm.fields_dict[“items”].grid.toggle_enable(“s_warehouse”, true);
or
cur_frm.fields_dict[‘deductions’].grid.set_column_disp(salary_detail_fields,true);

would make the field editable in all rows of the grid.
How do I do that to a field in a particular row alone? The field should be read only in all other rows.

TIA
Krithi

Does this help Grid row toggle_enable based on a condition doesn't work as expected