Have you found any solutions to your question? I am interested in the same answer.
You can achieve this in following way
say the dataprovider of datagrid is something like this
where id is the rowid ... then onclick of the button you can fetch this rowid and get the data and also make it editable.
Hope you got my point
Let me know if you have any questions
If this post answers your question or helps, please kindly mark it as such.