protected virtual void OnRowDataBound (GridViewRowEventArgs e) { if (Events != null) { GridViewRowEventHandler eh = (GridViewRowEventHandler) Events [RowDataBoundEvent]; if (eh != null) eh (this, e); } }