I'm having a couple problems with the example you provided...one was easy to fix, but a solution to the other is eluding me.
First, the example shows the ItemDataBound delegate getting registered in the Page_Load method, which happens after the databinding has occurred. ( I presume the handler being named ItemCreated was a typo). That was easily solved by declaratively registering the handler in the repeaterItemMetaData tag:
Now however, I find that the IMetaInfo meta object is always null (I guess because I can't cast a KeyValuePair to IMetaInfo).
What I can't figure out is how to cast the e.Item.DataItem to something useful
If can figure this out, I think I can do several things that I'd like to get accomplished; 1. change the caption of metafields, and 2., where I'm storing the URL of a thumbnail, construct an image tag in the repeater.
Any idea what's wrong?