Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have developed a report in reportviewer using ASP.NET in visual studio2010.

I want to display serial number in report but i am not using tabix,matrix.........

just i drag the fields in rdlc , i want serial number to display in rdlc report..



please reply with coding.



Thanks,
Posted
Comments
Balakrishnan Dhinakaran 7-Dec-11 0:13am    
your question is incomplete ..describe briefly about what you have and what you want..
S.P.Tiwari 7-Dec-11 0:27am    
plz tell clearly what type of field you have and where you want to serial no.
jayapriya.L 7-Dec-11 1:43am    
Hi I want to display serial number in report using RDLC file....

An expression containing the RowNumber function, when used in a text box within a data region, displays the row number for each instance of the text box in which the expression appears. This function can be useful to number rows in a table.
Try using RowNumber(Scope) function to display the row numbers. If scope is nothing then RowNumber(Nothing) provides the running count of rows in the outermost data region.
Also Refer to http://msdn2.microsoft.com/en-us/library/ms251668(VS.80).aspx
 
Share this answer
 
Add a column in your rdlc report where you want to put serial number.
Now write the Expression RowNumber("datasource name") like
RowNumber("DataSource1")
 
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