Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a form in which there is a search button and a DataGridView .
when I click on search button, the data of DataGridView may change.
now I want show this data in a report of stimulSoftReport by clicking on print button.
I use this code in click event of print button(I don't know it is correct or not):

C#
DataTable dt= dgvAccounting.DataSource as DataTable;
           strAccounting.RegData(dt);
           strAccounting.Show();


but I don't know what I should do in report design environment.
Posted

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