Click here to Skip to main content
15,914,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am poor in report viewer of asp.net. In the following code 3 columns with data is displayed.
All the rows that is available in the table is displayed. My table name is 'product'. the columns names are ProductId,ProductName,Rate. If I want to display that particular row which has the ProductId=5, how to do it?

XML
<form id="form1" runat="server">
<div>
    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
        Font-Size="8pt" Height="400px" Width="400px">
        <LocalReport ReportPath="Report1.rdlc">
            <DataSources>
                <rsweb:ReportDataSource DataSourceId="ObjectDataSource1"
                    Name="prasiddhiDataSet_product" />
            </DataSources>
        </LocalReport>
    </rsweb:ReportViewer>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        SelectMethod="GetData"
        TypeName="prasiddhiDataSetTableAdapters.productTableAdapter">
    </asp:ObjectDataSource>
</div>
</form>
Posted
Comments
ZurdoDev 7-Jan-14 10:30am    
Your report needs to accept the parameter.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900