Share via


SetFilter(object, Microsoft.SharePoint.WebPartPages.Communication.SetFilterEventArgs) Method

The SetFilter method of the DataViewWebPart class implements the SetFilter event handler.

Parameters

sender   Object sending the event.

setFilterEventArgs   Arguments for the event, such as the filter expression.

Exceptions

Exception Type Condition
System.Exception Invalid filter string format was supplied.

Remarks

The SetFilter method implements the SetFilter event handler. This event is sent by the provider to set the filter expression on the list.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security