Let all the columns of the grid are read only and when user select two rows among them and click on edit button to make it editable and the rest rows still remain read only.
if any api method is available to support the above requirement then please let me know.