//--button click event fro getting the student rest_detail
 private void button1_Click(object sender, EventArgs e)
 {
     frm_result_det frm_result = new frm_result_det();
     DataSet rpt_dataset = populate_score();
     ReportDocument rpt = new crSTResult_Det();
     rpt.SetDataSource(rpt_dataset);
     frm_result.CrystalReport.ReportSource = rpt;
     frm_result.CrystalReport.Refresh();
     frm_result.Show();
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     crSTResult_Det rpt = new crSTResult_Det();
     rpt.Site = this.Site;
     return rpt;
 }