string cmd="select name from users "; DataTable dt = new DataTable(); DataSet1 ds = new DataSet1(); dt= dg1.DataSource as DataTable; SqlDataAdapter da = new SqlDataAdapter(cmd, DBConnection.GetSqlConnction()); da.Fill(ds, "users"); ds.Tables.Add(dt); CrystalReport1 cryst = new CrystalReport1(); cryst.SetDataSource(ds.Tables); crystalReportViewer1.ReportSource = cryst; DBConnection.Connectionclose();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)