Last modified: October 03, 2012
Applies to: apps for SharePoint | Excel Services | SharePoint Server 2013
Adds an event handler to the gridSynchronized event.
The EwaControl.add_gridSynchronized method subscribes an event handler to the gridSynchronized event.
The grid is the construct that Excel Services uses to display the viewable area of the Worksheet within the Excel Web Access Web Part.
The gridSynchronized event is raised when the grid is finished rendering, when the workbook is loaded or reloaded, or when grid blocks are updated. The event is also raised the first time that the event handler is subscribed to (the grid will have finished rendering before this).
When the specified event handler for the gridSynchronized event is invoked, it is invoked with a single argument of type Ewa.WorkbookEventArgs. The Ewa.WorkbookEventArgs object contains information about the Workbook associated with the gridSynchronized event.
The following code example subscribes an event handler to the gridSynchronized event. The code also shows how to use the Ewa.WorkbookEventArgs to get information about the associated Workbook. The code example assumes that you are working with an Excel Web Access Web Part on SharePoint Server 2013.