rptStudyCertificate rsc = new rptStudyCertificate(); using (DataClasseDataContext db = new DataClasseDataContext()) { var list = (from data in db.StudyCertificates join clsdet in db.StudentClassDetails on data.AdmissionNo equals clsdet.AdmissionNo where data.ID == Convert.ToInt16(sno) select new { ID = data.ID, Class = clsdet.Class, AcademicYear = clsdet.AcademicYear, AdmissionNo = clsdet.AdmissionNo, Conduct = data.Conduct}).FirstOrDefault(); if (list != null) { rsc.SetDataSource(list); CrystalReportViewer1.ReportSource = rsc; } }
rsc.SetDataSource(list);
error is: The data source object is invalid.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)