private void button1_Click(object sender, EventArgs e) { Cursor = Cursors.WaitCursor; LoadData loadData = new LoadData(); List <AuditData2> xxx = loadData.AnaylyzePivot(txtSelectedFile.Text); //dataGridView1.DataSource = xxx.OrderBy(x=>x.amout_abs).ToList(); ReportDataSource datasource = new ReportDataSource("DataSet1", xxx); this.reportViewer1.LocalReport.ReportPath = "report2.rdlc"; this.reportViewer1.LocalReport.DataSources.Clear(); this.reportViewer1.LocalReport.DataSources.Add(datasource); this.reportViewer1.RefreshReport(); Cursor = Cursors.Default; }