RowProviderInitEventHandler Delegate

The RowProviderInitEventHandler delegate represents the method that handles the RowProviderInit event fired by a Web Part that implements the IRowProvider interface.

The declaration of your event handler must have the same parameters as the RowProviderInitEventHandler delegate declaration.

sender  The source of the event, the Web Part.

e  A RowProviderInitEventArgs that contains the event data.

Remarks

When you create a RowProviderInitEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

Example

The following code example shows the declaration of an event of type RowProviderInitEventHandler from a WebPart class that implements the IRowProvider interface. A code sample that shows the implementation of the event handler is in the RowProviderInit event topic. A code sample that shows the full implementation of the IRowProvider interface is in the IRowProvider topic.

Requirements

Namespace: Microsoft.SharePoint.WebPartPages.Communication

Platforms: Microsoft Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security. In addition, the WebPartPermissions.Connections permission is required to use this member.