Поделиться через


ReportViewer.Search Event

This event occurs when the user clicks the Find or Find Next button, or when a search operation is invoked programmatically.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

Syntax

'Declaration
Public Event Search As SearchEventHandler
'Usage
Dim instance As ReportViewer
Dim handler As SearchEventHandler

AddHandler instance.Search, handler
public event SearchEventHandler Search
public:
event SearchEventHandler^ Search {
    void add (SearchEventHandler^ value);
    void remove (SearchEventHandler^ value);
}
/** @event */
public void add_Search (SearchEventHandler value)

/** @event */
public void remove_Search (SearchEventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Remarks

This event occurs when the report is refreshed. Information about this event is passed in a SearchEventArgs object to the SearchEventHandler delegate, which handles the event.

For more information about handling events, see Consuming Events.

See Also

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace
ReportViewer.Find Method