Microsoft Reporting Services - report showing only first record

I've a Dataset (DataSet_qryDadosCarros) that has an SQL View as data source (qryDadosCarros). I use the code below to bound the data to a report. The report opens correctly but shows only the first record. If I open the Dataset and preview the data, it shows all of the records, only on the report shows only the first.

What I'm I missing here?

Thanks for your help,

jppinto
Public Class frmReportViewer

    Private Sub frmReportViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


        With Me.ReportViewer1.LocalReport
            .ReportPath = Application.StartupPath & "\..\..\Reports\rpt_DQAsubCarros.rdlc"
            .DataSources.Clear()
        End With

        SQL = "SELECT * FROM qryDadosCarros"
        Using da As New SqlDataAdapter(SQL, myConnectionString)

            Using ds As New DataSet
                da.Fill(ds, "qryDadosCarros")
                Dim rptDataSource As New ReportDataSource("DataSet_qryDadosCarros", ds.Tables("qryDadosCarros"))
                Me.ReportViewer1.LocalReport.DataSources.Add(rptDataSource)
            End Using

        End Using
        Me.ReportViewer1.RefreshReport()
    End Sub
End Class

Open in new window

LVL 33
jppintoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jorge PaulinoIT Pro/DeveloperCommented:
Check in the value definition at the table (of the report) if you don't have =First(field.value)
0
jppintoAuthor Commented:
Hello jpaulino,

I've checked and I don't have "First" on the table. I will follow up on this only tomorrow. Thanks for your comment...

jppinto
0
Jorge PaulinoIT Pro/DeveloperCommented:
And do you have the fields in the "Details" row? Check if you don't have them in the Row Header.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jppintoAuthor Commented:
That's it! This is the first time that I'm using Reporting Services and I don't know how the table works. I had the fields on the Row Header! I've move them to the Details part of the table and it's working fine now!

Thanks.

jppinto
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.