private bool IsGridViewEventToRemove(GridViewEvent gridEvent)
        {
            if (GridViewSynchronizationService.IsTemplatePropertyChangingEvent(gridEvent))
            {
                return((gridEvent.Arguments[0] as PropertyChangingEventArgsEx).PropertyName == "DataSource");
            }
            if (gridEvent.Info.Id != KnownEvents.ViewChanged)
            {
                return(false);
            }
            DataViewChangedEventArgs changedEventArgs = gridEvent.Arguments[0] as DataViewChangedEventArgs;
            int action = (int)changedEventArgs.Action;

            return(changedEventArgs.Action == ViewChangedAction.Reset);
        }
 GridViewEventResult IGridViewEventListener.ProcessEvent(
     GridViewEvent eventData)
 {
     if (GridViewSynchronizationService.IsTemplatePropertyChangingEvent(eventData))
     {
         return(this.ProcessTemplatePropertyChanging(eventData));
     }
     if (eventData.Sender != this.template)
     {
         return((GridViewEventResult)null);
     }
     if (GridViewSynchronizationService.IsTemplatePropertyChangedEvent(eventData))
     {
         return(this.ProcessTemplatePropertyChangedEvent(eventData));
     }
     if (eventData.Info.Id == KnownEvents.ViewChanged)
     {
         return(this.ProcessViewChangedEvent(eventData));
     }
     return((GridViewEventResult)null);
 }