views:

31

answers:

1

i have sql server 2008 on windows 7. am trying to design a very simple local report to display just about 10 records in a database table in a report-viewer control on a windows forms application startup form. when i run the application the report shows up, i can see the report header text but it does not show any rows(and there are rows in the table). even when i preview the report DataTable, the rows are there. When i try the same on on windows XP and SQL 2008, the rows appear. any know what i could be missing.

A: 

you must refresh your report after databinding. write this line at the end of your code:

ReportViewerControl.LocalReport.Refresh();

maybe your datasource name be wrong. your datasource name must like this:

DataSetName_DataTableName

masoud ramezani