Click here to Skip to main content
15,895,192 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
How to pass datagridview to dataset?????????

Then Pass dataset to crystalrepot


datagrid............>dataset..............>crystalreport
Posted
Updated 6-Sep-11 23:42pm
v2

You do not pass a DataGridView to a Dataset.
You assign the source of the DataGridView to the DataSet.

Read Creating Crystal Reports using C# with Datasets[^] if you want to set a DataSet as the source for a Crystal Report.
 
Share this answer
 
Comments
Wendelius 7-Sep-11 5:47am    
That's what I thought also, just a bit later, +5 :)
Abhinav S 7-Sep-11 5:53am    
Thank you Mika.
DataGridView is a class to visualize the data where as dataset contains 'only' data.

If you already have a data datagridview, you propably have a dataset or datatable defined for the datagridview's datasource property. If that's true then you can take that dataset and pass it to crystal.
 
Share this answer
 
Comments
Abhinav S 7-Sep-11 5:54am    
My 5. :)
Wendelius 7-Sep-11 6:23am    
Thanks Abhinav :)

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