protected virtual void OnRowCommand (GridViewCommandEventArgs e) { if (Events != null) { GridViewCommandEventHandler eh = (GridViewCommandEventHandler) Events [RowCommandEvent]; if (eh != null) eh (this, e); } }