SPDataSource.OnSelecting method

Raises the Selecting event.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public virtual void OnSelecting(
	EventArgs arguments
)

Parameters

arguments
Type: System.EventArgs

The event data.

Before a data retrieval operation is performed by the SPDataSourceView object that is associated with the SPDataSource control, the OnSelecting method is called to raise the Selecting event. You can raise the event in your own code by calling the OnSelecting method as well, passing your own EventArgs object.

To register a handler with the Selecting event, use the += event accessors in C# or the AddHandler statement in Visual Basic. To prevent the event from being raised, subclass the SPDataSource control and then override the OnSelecting method.

Show: