Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
i make a question from about 2 hours about the same thing one give me an article i accpt his solution but after i d it i find that article doesn,t do what i need i need to make the crystal report make th report from grid view that not connected to database what i would use in that situation Data source or what the datagridview is not connected to database
Posted
Comments
Aravindba 5-Aug-15 22:35pm    
I am try to understand ur question ,but i didnt understand ur question got head hac.
Repost -http://www.codeproject.com/Questions/1016222/make-crystal-report-from-datagridview?arn=0
IF u accept solution and later u find nothing help,then click Reject Solution button,dont ask same thing again with different question.

1 solution

Well, you can't.

The data in the GridView has to be stored somewhere, like a DataTable, so that CR can bind to it. CR can't bind to the GridView itself.
 
Share this answer
 
Comments
ÃHmed Élkady 6-Aug-15 11:54am    
pls give me sample code
Dave Kreskowiak 6-Aug-15 13:00pm    
I don't have any. I never use a Grid as en edit control. I only use it to display the contents of a datasource.
ÃHmed Élkady 6-Aug-15 13:10pm    
i need sample code to how i can add the the datagridview to datatable
Dave Kreskowiak 6-Aug-15 13:24pm    
Create a datatable object, populate it with appropriate columns and bind it to the grid's DataSource property. Google for "C# create a DataTable".
ÃHmed Élkady 6-Aug-15 13:25pm    
i will try

and give you fedback :)

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