[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.Designer.LocateCredentials

LocateCredentials Event

Occurs when credentials are needed to access a data source. This event facilitates secure credential provision.

Namespace: GrapeCity.ActiveReports.Design
Assembly: MESCIUS.ActiveReports.Design.Win.dll
Syntax
public event LocateCredentialsEventHandler LocateCredentials
Returns
Type Description
LocateCredentialsEventHandler Occurs when credentials are needed to access a data source. This event facilitates secure credential provision.
Remarks

This event is raised when accessing a data source requires authentication, and credentials are not available or need to be confirmed. It provides a secure way to request and apply credentials without hard-coding them into the report or application.

Handlers for this event can prompt the user for credentials, retrieve them from a secure store, or apply default credentials based on application logic.

Examples

It can be necessary for report preview. Use this event to provide the credentials for the data providers.

designer.LocateCredentials += (sender, args) => {
	args.UserName = "sa";
	args.Password = "12345";
}