How do I limit the number of rows in a table while

2019-06-12 10:11发布

问题:

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?

回答1:

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: