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
875
Is there a way to programmatically have the Wingrid run its column summary?
posted
I have a grid that has columns of checkboxes.  For each column, during the  InitializeLayout event, I have set  

theGrid.DisplayLayout.Bands(0).Summaries.Add(SummaryType.Sum, theColumn).  

The summaries at the bottom of the columns show up correctly.  The problem I am having is that whenever I check or uncheck a checkbox in a column, the summary total does not update until I leave the cell.  Is there a way to programmatically have the Wingrid run its column summary?  I can capture the fact that the check box in the cell has changed its value, but can't seem to find how to recalculate the column.

Parents
No Data
Reply
  • 37774
    posted

    You could force a specific summary to refresh itself through:

    theGrid.DisplayLaytout.Bands(0).Summaries("columnKey").Refresh()

    I would make sure that the cell's value is actually getting updated when calling this, though, otherwise you might not see any change. 

    -Matt

Children