private void GridReport_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1) { if (GridReport.CurrentRow != null && GridReport.ReadOnly == false) { bool ischeck = Convert1.ToBoolean(GridReport[1, e.RowIndex].Value); if (ischeck == false) { GridReport[1, e.RowIndex].Value = true; } else { GridReport[1, e.RowIndex].Value = false; } } } }
private void btnPrintAllselect_Click(object sender, EventArgs e) { //previewRpt List <string> rptCode = new List <string>(); for (int i = 0; i <= GridReport.Rows.Count - 1; i++) { if (Convert1.ToBoolean(GridReport[1, i].Value) == true) { string ReportCode = Convert1.ToString(GridReport["ColReportCode", i].Value); rptCode.Add(ReportCode); } } if (rptCode.Count > 0) { Report.frmPreviewReport frm = new Report.frmPreviewReport(currentRegis.tpr_id, rptCode); //Report.frmPreviewReport._propertyReport prop = new Report.frmPreviewReport._propertyReport(); //prop.tpr_id = currentRegis.tpr_id; //prop.reportCode = rptCode; //frm.propertyReport = prop; frm.previewReport(); } //if (rptCode.Count > 0) ClsReport.previewRpt(currentRegis.tpr_id, rptCode); }