Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1120
How to prevent calculation of summaries for template row
posted

 Hi everyone

How can we prevent calculation of summaries when we are in template row or add new row.

In my grid few columns like Profit and Investment are dependent on Stake. These 3 columns have summaries.

 When ever we enter the AddNewRow the click on the Stake column (the default value assinging to stake is 0) its trying to calculate the profit with that Stake 0 vaule and the eventually the summary for the profit, due to which the the Stake Column cell is exiting the edit mode with out typing anything there. I tried to set the entereditmode for the cell but could not solve the problem.

Can anyone suggest how to solve the above mentioned problem

Thanks in advance

Navi 

  • 18495
    posted

    Hello Navi,

    You can implement this behavior by handling the BeforeRowActivate event and calling UltraGrid.SuspendSummaryUpdates().  Then, handle the AfterRowUpdate event and call UltraGrid.ResumeSummaryUpdates() passing in true.