This is a migrated thread and some comments may be shown as answers.

Displaying Row Numbers

8 Answers 3393 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bekir
Top achievements
Rank 1
Bekir asked on 15 Sep 2010, 11:15 AM
i am trying to display order numbers for every data row in detail section. There is no "order" column in database.

Output will be:

order id name
1 57 jack
2 23 denis
3 67 harry


ps: i am sorry for my english (:

8 Answers, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 15 Sep 2010, 03:00 PM
If you just need to display the row number of the current record, you need to add a textbox to the detail section and set its .Value property to:
= RowNumber()
0
Bekir
Top achievements
Rank 1
answered on 21 Sep 2010, 09:31 AM
i was trying to do that in the table, but it wants "scope" as parameter.. anyway i solved my problem, thanks for reply..
0
Grigore Dolghin
Top achievements
Rank 1
answered on 10 Feb 2011, 10:52 AM
It would be too much to put your solution here?
0
Cheri
Top achievements
Rank 1
answered on 06 Mar 2012, 07:19 PM
Can you tell me how to get a row count for the total number of detail records?  I wish to place this data in a group footer related to those detail records.

Thank you,
Cheri
0
Cheri
Top achievements
Rank 1
answered on 06 Mar 2012, 08:33 PM
I got it. 

=Count(Fields.<yourfieldname>)

When placed in the group footer this will render the total number of detail records contained in that group.
0
Mohammed
Top achievements
Rank 2
answered on 17 Mar 2013, 02:02 AM
that can work if the field in the report data source but my problem is i want to count number of rows in the table that located in the group header, and that table has its own data source, so how can i get the count of each table rows in each header section.
0
Petr
Top achievements
Rank 1
answered on 04 Apr 2019, 07:55 AM
Please, still not solution for this problem? [quote]that can work if the field in the report data source but my problem is i want to count number of rows in the table that located in the group header, and that table has its own data source, so how can i get the count of each table rows in each header section.[/quote]
0
Silviya
Telerik team
answered on 09 Apr 2019, 06:58 AM
Hi Petr,

In this case, you can assign the data source of the Report itself and bind the table's data from the parent. 
In this case, you are improving the report performance by reusing the data from the parent, instead of creating and configuring a new data source component to retrieve the data anew. You can reuse the data by adding a Binding to the data item's DataSource property, which sets the following expression: = ReportItem.DataObject.

For more information, please refer to the Binding a Data item to Data and How to use the ReportItem.DataObject property in expressions help articles.

If the above information does not help, please open a support ticket and attach a runnable demo project that reproduces this issue. This way we can check your settings and give you more accurate suggestions.

Best Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Bekir
Top achievements
Rank 1
Answers by
Patrick
Top achievements
Rank 1
Bekir
Top achievements
Rank 1
Grigore Dolghin
Top achievements
Rank 1
Cheri
Top achievements
Rank 1
Mohammed
Top achievements
Rank 2
Petr
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or