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

Recalculate group subtotals when row moved from one group to another?

2 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shawn
Top achievements
Rank 1
shawn asked on 27 Sep 2011, 07:47 PM
Hi,

I have a radgridview (Q2 2011) in which I am grouping orders by production line.  When I move an order by changing the line number in the grid, the row correctly moves to the correct line grouping, however I need to be able to recalculate the subtotals for both the line group that it was removed from in addiition to the line group that it was added to.....I am trying to find the event that fires when the row is moved to another group in the group by definition.....any suggestions / examples are appreciated.

Regards,
Shawn

2 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 30 Sep 2011, 05:56 AM
Hello Shawn,

There is no event like that,

You could always handle the CurrentRowChanging event and check the old row and the new one if they belong to the same group and if not do what you need.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Accepted
Julian Benkov
Telerik team
answered on 30 Sep 2011, 03:42 PM
Hello Shawn,

RadGridView should internally handle this case. This is an issue and it is logged in our PITS. You can find the workaround for this case in the support ticket that you have opened about the same topic.

Kind regards,

Julian Benkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
shawn
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or