|
-
Aug 11th, 2016, 06:50 PM
#1
Thread Starter
Junior Member
RDLC Report With Two DataSets. How To ?
Hi,
I'm creating a small vb.net(VS2010) application and it has two datagridviews. I want to print the data on gridviews using reportviewer. So I'm trying to use two datasets. With one dataset I can print the gridview, but I don't understand how to use two datasets with the report. Can someone please help me. This is the code I used.
First I added a dataset and created a table on it. Then I used this code.
Dim dt As New DataTable
With dt
.Columns.Add("column1")
.Columns.Add("column2")
End With
For Each row As DataGridViewRow In datagridview.Rows
dt.Rows.Add(row.Cells(2).Value, row.Cells(3).Value)
Next
Report.ReportViewer1.LocalReport.DataSources.Item(0).Value = dt
Report.ShowDialog()
Report.Dispose()
How do I use two datasets to print the other gridview on the same report ?
Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|