Click here to Skip to main content
15,910,277 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to make the data of gridview as source of crystal report how can do this in asp.net ?
Posted
Updated 22-Jun-15 1:10am
v2

1 solution

BindingSource bs = (BindingSource)dgrid.DataSource;
DataTable tCxC = (DataTable) bs.DataSource;


After being converted datatable it can be set as a source for crystal reports
 
Share this answer
 

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