Multiple summary rows

3 posts, 1 answers
  1. Tomaz
    Tomaz avatar
    5 posts
    Member since:
    Jan 2012

    Posted 13 Mar 2012 Link to this post

    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. Answer
    Ivan Petrov
    Admin
    Ivan Petrov avatar
    705 posts

    Posted 16 Mar 2012 Link to this post

    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 >>
  3. Tomaz
    Tomaz avatar
    5 posts
    Member since:
    Jan 2012

    Posted 16 Mar 2012 Link to this post

    Exactly what I needed, thank you very much.

    Regards,
    Tomaz
Back to Top