ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Aspnet.Designer Assembly / GrapeCity.ActiveReports.Web.Designer Namespace / ReportDesignerConfiguration Class / LocateDataSource Property
Example

In This Topic
    LocateDataSource Property (ReportDesignerConfiguration)
    In This Topic
    Gets or sets the function to locate the data source.
    Syntax
    'Declaration
     
    Public Property LocateDataSource As Func(Of Object)
    public Func<object> LocateDataSource {get; set;}

    Property Value

    A Func that returns the data source object.
    Example
    app.UseReportDesigner(config =>
    {
    	// An example for JSON provider.
    	config.LocateDataSource = () => "[{\"id\":1,\"name\":\"A\"},{\"id\":2,\"name\":\"B\"}]";
    });
    See Also