Home Forums WinForms controls Xceed Grid for WinForms Showing Subtotals at runtime

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13113 |

    Is there any easy way to show subtotals at runtime at the point where a user drags a column to the grouping section?

    Thanks,

    John

    Imported from legacy forums. Posted by DBAJAM (had 1868 views)

    User (Old forums)
    Member
    Post count: 23064

    The best way I found was to handle the GroupingUpdated event of the grid and then I did a foreach on the Groups, where I calculated the subtotals, and then assigned that to the GroupManager.Title. Of course, you need to also update the subtotales if your data source changes.

    Hope that helps

    Imported from legacy forums. Posted by Martha (had 3139 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.