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();
}