简体   繁体   中英

How do I limit the number of rows in a table while designing a rdlc report?

I am new to windows desktop application development.
I am designing a report in an rdlc file in which I am using a table to display the items. The table expands automatically as per the number of records.

I want to limit the display to a maximum of 10 record in that table. How do I achieve this?

You will have to follow few steps:

Step 1: Right Click on your Table(that is next to First Column, Second Row) and Select Add Group
Step 2: Under Add Group - Select Parent Group
Step 3: There you need to click on fx and add this - =Ceiling(Rownumber(nothing)/10).
Step 4: Click Ok and right click the group just created. Give a name to it.
Step 5: Select 2nd option PageBreaks and check 'Between each instance of group'
Step 6: Click on Sorting and Delete exisiting sorting. Thats it.
Step 7: Delete the new Grouping Column.

I have attached image for Step 1:

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM