Trigger lightbox form from a grid

Hi all, I have a grid showing all events and for each row i have a button that i would like to trigger lightbox form to edit that event. Is there a way to do this?

Sorry my english.

Thanks in advance.

You can assign onclick handler, with code like

scheduler.showLightbox(event_id);

which will start editing of the event in question