I've been desperately trying to get this to work, but the more I research the more I realise it's not do-able! I've been trying to get attributes added to a ListItem using the ListItem.Attributes.Add() method, but it seems that none of these render to the client! What's the point of it being there?
I found another blog on this here... If anyone finds a solution, please post back!