try { for (int i = 0; i < listBox1.Items.Count - 1; i++) { string myitems = listBox1.Items[i].ToString(); // TODO: This line of code loads data into the 'DataSet1.Investment' table. You can move, or remove it, as needed. this.InvestmentTableAdapter.Fill(this.DataSet1.Investment, myitems.ToString()); // TODO: This line of code loads data into the 'DataSet1.DataTable1' table. You can move, or remove it, as needed. this.DataTable1TableAdapter.Fill(this.DataSet1.DataTable1); // TODO: This line of code loads data into the 'DataSet1.prcindividual' table. You can move, or remove it, as needed. this.prcindividualTableAdapter.Fill(this.DataSet1.prcindividual, myitems.ToString(), "2015"); // TODO: This line of code loads data into the 'DataSet1.prcindividualcal' table. You can move, or remove it, as needed. this.prcindividualcalTableAdapter.Fill(this.DataSet1.prcindividualcal, myitems.ToString()); } this.reportViewer1.RefreshReport(); } catch (Exception ex) { MessageBox.Show(ex.Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)