JsonDataSource.Fill() Method
Populates the JsonDataSource object with JSON data.
Namespace: DevExpress.DataAccess.Json
Assembly: DevExpress.DataAccess.v19.2.dll
Declaration
Remarks
Use the Fill method to retrieve JSON data to the Report Designer’s Field List.
using DevExpress.DataAccess.Json;
using DevExpress.XtraReports.UI;
// ...
public static JsonDataSource CreateDataSourceFromWeb() {
var jsonDataSource = new JsonDataSource();
// Specify the data source location
jsonDataSource.JsonSource = new UriJsonSource(new Uri("http://northwind.servicestack.net/customers.json"));
// Retrieve data from the JSON data source to the Report Designer's Field List
jsonDataSource.Fill();
return jsonDataSource;
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Fill() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also