Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
i have a form that contains a Gridview show VIEW result using EntityFramwork Query.
how to bind Xtrareport datasource (EntityFramwork) with the previous query so user don't need to reload the data and re enter the parameters value.

What I have tried:

i use this code to customize EF ConnectionParameters before loading the report:
((EFDataSource)report.DataSource).ConnectionParameters.ConnectionString = conn;
                (EFDataSource)report.DataSource = query;


The left-hand side of an assignment must be a variable, property or indexer	
Posted
Updated 7-Apr-19 21:55pm
v3

1 solution

... = query.ToList();

Quote:
Use the DataSource property to specify a data source for your report. Multiple data source types are supported, including .NET data providers, lists (implementing the System.Collections.IList, System.ComponentModel.ITypedList, or System.ComponentModel.IBindingList interfaces), and XML data sources. To learn more, refer to Quick Guide to Report Data Binding.
 
Share this answer
 
Comments
Golden Basim 8-Apr-19 5:23am    
The left-hand side of an assignment must be a variable, property or indexer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900