TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
krishnakumar kuna
NA
57
36.8k
Use Datatable for report viewer programatically
Oct 27 2013 12:30 PM
Hello,
I need to pass datatable to report viewer for reporting purpose programmatically ,but i am not able to fetch data inside the datatable
my code is this .
dt.TableName = "datatable1";
ReportDataSource odata = new ReportDataSource("DataTable1", dt);
odata.Name = "testc";
odata.Value = ds.Tables["dt"];
// ReportViewer1.LocalReport.DataSources("datatable1",dt);
ReportViewer1.LocalReport.DataSources.Add(odata);
ReportViewer1.DataBind();
// ReportDataSource source = new ReportDataSource("DataTable1", dt);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(odata);
ReportViewer1.DataBind();
ReportViewer1.LocalReport.Refresh();
Reply
Answers (
1
)
Pass String from code behind to aspx page
Build a Software