Compartilhar via


SPDataSource.OnSelecting Method

Raises the Selecting event.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overridable Sub OnSelecting ( _
    arguments As EventArgs _
)
'Usage
Dim instance As SPDataSource
Dim arguments As EventArgs

instance.OnSelecting(arguments)
public virtual void OnSelecting(
    EventArgs arguments
)

Parameters

Remarks

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.

See Also

Reference

SPDataSource Class

SPDataSource Members

Microsoft.SharePoint.WebControls Namespace

ExecuteSelect

Selecting