SPDataSource.Selecting event

Occurs immediately before a data retrieval operation.

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

Syntax

'Declaration
Public Event Selecting As EventHandler
'Usage
Dim instance As SPDataSource
Dim handler As EventHandler

AddHandler instance.Selecting, handler
public event EventHandler Selecting

Remarks

The Selecting event is raised immediately before data is retrieved from the underlying data source. To handle the event, register your handler with the Selecting event by using 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(EventArgs) method.

See also

Reference

SPDataSource class

SPDataSource members

Microsoft.SharePoint.WebControls namespace

OnSelecting(EventArgs)