Grid line-based editing button

Hi everyone,
Grid supports line-based editing, where double-clicking a row opens the row editor. But I need to do the same withe an edit button. Hove can I do that?
Thank you in advance.