or
e.CurrentRow.DataBoundItem throws a nullreference exception if it is not set. This should really be solved by just returning null, because using this code:
if(e.CurrentRow.DataBoundItem != null)
{
//some code
}
doesn't work. Catching the exception causes unwanted side effects.