如何添加我rownumbers为每个组在RDLC报告? [英] How can add I rownumbers for each group on a RDLC Report?
问题描述
我怎样才能添加行号是这样的:
How can ı add row numbers like this:
第1组
ROWNUMBER ID名年龄
RowNumber ID Name Age
1 231 test 43
2 324 test2 45
3 354 test3 34
第2组
ROWNUMBER ID名年龄
RowNumber ID Name Age
1 657 test4 43
2 534 test5 45
3 678 test6 34
我想要做的行号这样的例子。对于每一组我的行号将重置并启动从1到组行数。我gruops(第1组,第2组,....)从分贝动态来了!有多少组我不太清楚! 这里一>是我找到了一些解决方案,但我认为这些解决方案可用于多少个组时,我们知道!
I want to do row numbers like this example.. For each group my row numbers will reset and start from 1 to groups row count.. My gruops(GROUP 1,GROUP 2, ....) are coming from db dynamically! How many group I have is not clear! here is I found some solutions but I think those solutions are available for how many groups when we know!
推荐答案
RDLCs有 ROWNUMBER(ScopeName)
功能。这将返回给定范围内记录的行号。
RDLCs have a RowNumber("ScopeName")
Function. This will return the row number of the record within the given scope.
您可以看到下一个行组和列为设计师下方的报告中现有组组的头。选择您想要的行号分组内的列并查看行列,缺省的名字将是:
You can see the existing groups for the report below the designer under a "Row Groups" and "Column Groups" headers. Select the column inside the grouping where you want the row number and view the Row Columns, The default names will be:
[(Group1)
≡(Details1)
设置表达式的行号列是
=RowNumber("Group1")
这篇关于如何添加我rownumbers为每个组在RDLC报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!