Selective action on Rows Of Grid based on data

Hi ,
I have this use case where based on a certain data contains true or false I have to make the row uneditable and editable respectively.

The row has multiple columns say price quantity which I am having enabled for inline editing .
Now if the data is {true , <price> , <quantity> } I want to disable the inline editing and if it's
{false , <price> , <quantity>} then the columns of the row should be enabled for inline editing.

What I should use in this case in Grid Panel . Some pointers on this will be highly appreciated.
Thanks
Pulkit