DataSet1TableAdapters.SelectRegisteredParentTableAdapter tb1 = new DataSet1TableAdapters.SelectRegisteredParentTableAdapter( ); DataSet1.SelectRegisteredParentDataTable ds = tb1.GetData( ); Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource( "DataSet1", ds.AsEnumerable( ).CopyToDataTable( ) ); reportViewer1.LocalReport.DataSources.Clear( ); reportViewer1.LocalReport.ReportPath = "Report1.rdlc"; reportViewer1.LocalReport.DataSources.Add( reportDataSource1 ); reportViewer1.RefreshReport( )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)