Please refer the Below example :-
<cr:crystalreportviewer id="SAPcrystalReport" runat="server" autodatabind="true" hascrystallogo="False" width="100%" xmlns:cr="#unknown" />
private void Page_Init(object sender, EventArgs e)
{
ReportDocument rd;
EmployeeReport ds = new EmployeeReport();
DataTable dt = ds.Tables["empTable"];
DataRow row;
List<asiemployeedal> lstEmployee = asiEmployeeDAL.SelectAllEmployee();
foreach (var objlst in lstEmployee.Take(100))
{
row = dt.NewRow();
row["empID"] = objlst.empID.ToString();
row["empName"] = objlst.empName;
row["address"] = objlst.address;
row["city"] = objlst.city;
row["contactNo"] = objlst.contactNo.ToString();
dt.Rows.Add(row);
}
rd = new AllEmployeeReport();
rd.SetDataSource(dt);
SAPcrystalReport.ReportSource = rd;
SAPcrystalReport.DataBind();
}