Detect and replace broken images in a grid

Hi,

is there a way to detect a broken image in an img- or link-type cell and replace it?
On a simple html page you could do something like below:

function replaceBrokenImage(source)
{
source.src = “no-image.gif”;
source.onerror = “”;
return true;
}

Is it possible to attach such an event to the image in a gridcell?

thanks and kind regards,
Arno.