简体   繁体   English

在设计rdlc报告时如何限制表中的行数?

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

I am new to windows desktop application development. 我是Windows桌面应用程序开发的新手。
I am designing a report in an rdlc file in which I am using a table to display the items. 我正在rdlc文件中设计一个报告,我在其中使用表来显示项目。 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. 我想在该表中将显示限制为最多10条记录。 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 步骤1:右键单击您的表(位于第一列,第二行旁边)和选择添加组
Step 2: Under Add Group - Select Parent Group 第2步:在添加组下 - 选择父组
Step 3: There you need to click on fx and add this - =Ceiling(Rownumber(nothing)/10). 第3步:在那里你需要点击fx并添加它 - =天花板(Rownumber(无)/ 10)。
Step 4: Click Ok and right click the group just created. 第4步:单击“确定”,然后右键单击刚刚创建的组。 Give a name to it. 给它一个名字。
Step 5: Select 2nd option PageBreaks and check 'Between each instance of group' 第5步:选择第二个选项PageBreaks并选中“在每个组实例之间”
Step 6: Click on Sorting and Delete exisiting sorting. 第6步:单击排序并删除现有排序。 Thats it. 而已。
Step 7: Delete the new Grouping Column. 第7步:删除新的分组列。

I have attached image for Step 1: 我为第1步添加了图像:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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