Page 1 of 1

How to send data grid view by parameters in C#?

Posted: Sat Apr 14, 2018 1:48 pm
by AliBahaari
Hello, I have data grid view and I want to report for all records in every single distinct page and one dialog. I have written the code below but it shows me StimulSoft dialog per records and don't paginate for me. How can I do that ?

Code: Select all

foreach (DataGridViewRow tableRow in dataTable.Rows)
{
    string ShomareVahed = tableRow.Cells[0].Value.ToString();
    StiReport report = new StiReport();
    report.Load("Report.mrt");
    report.Compile();
    report["ShomareVahed"] = ShomareVahed;
    report.Show();
}

Re: How to send data grid view by parameters in C#?

Posted: Mon Apr 16, 2018 6:44 am
by Lech Kulikowski
Hello,

Please send us a sample project which reproduces the issue for analysis.

Also, please check the following sample:
https://www.stimulsoft.com/en/samples/w ... -from-code

Thank you.