开发者

Filter CrystalReport DataSet and binding to the report asp.net

开发者 https://www.devze.com 2023-01-31 15:16 出处:网络
I want to filter dataset taken to bind report. my code is something like this Mohan.Reports.DataSet1 ds1 = DataAccess.TNA_APPROVAL_DATA_FOR_PRINTING_STYLEWISE(DateTi开发者_开发技巧me.Now.Date, ddlSt

I want to filter dataset taken to bind report. my code is something like this

Mohan.Reports.DataSet1 ds1 = DataAccess.TNA_APPROVAL_DATA_FOR_PRINTING_STYLEWISE(DateTi开发者_开发技巧me.Now.Date, ddlStyle.SelectedValue);
ds1.Tables[0].Select("StyleNO='" + ddlStyle.SelectedValue + "'");
Reports.CrystalReport1 rp = new Mohan.Reports.CrystalReport1();
//DataRow dt =(DataRow) ds1.Tables[0].Select("StyleNO='" + ddlStyle.SelectedValue + "'");
reportTnaApprovalbyUser.SetDataSource(ds1.Tables[0].DefaultView.RowFilter = "StyleNO='" + ddlStyle.SelectedValue + "'");
CrystalReportViewer1.ReportSource = reportTnaApprovalbyUser;

But Data is not displaying on report. I think filteration is not working.... Please Help

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号