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

Multiple summary rows

2 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tomaz
Top achievements
Rank 1
Tomaz asked on 13 Mar 2012, 03:11 PM
Hello,

during the development of a WinForms application for our customer the following problem arose when using multiple summary rows in grid:

1) the attached picture shows existing grid with 2 summary rows. The requirement is that first summary row sums data only from even rows and the second summary row sums data only from odd rows. Is it possible to achieve these "filtered" sums? The grid is bound with custom objects which contain a boolean value which would serve as a basis for addition of data (DataBoundItem).

2) how can custom style be applied to specific summary row when using multiple summary rows (in our scenario the first summary row should be blue and the second one red)?

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Petrov
Telerik team
answered on 16 Mar 2012, 10:03 AM
Hello Tomaz,

Thank you for writing.

I have prepared a sample project for you where I have implemented your scenario. Please have a look at it and write back should you have any questions. In the project I use the RadGridView ViewRowFormatting for the styling the rows (the back color of the rows) and the GroupSummaryEvaluate to calculate the values for the summary rows.

I hope this will be useful for you. Again, should you have further questions do not hesitate to write back.

Regards,
Ivan Petrov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Tomaz
Top achievements
Rank 1
answered on 16 Mar 2012, 01:31 PM
Exactly what I needed, thank you very much.

Regards,
Tomaz
Tags
GridView
Asked by
Tomaz
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Tomaz
Top achievements
Rank 1
Share this question
or