The beforeRender event occurs after data has been selected from the database but before its outputting to client.
$gridConn->event->attach("beforeRender",myFunction);
In this event myFunction gets data item object as incoming argument. This object has different methods for different client side components.