Home Forums WinForms controls Xceed Grid for WinForms SummaryRow events

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

    I need to change the result of a SUM column within a summary row, but no events where fired after the SUM is complete.

     I’m “summing” some minutes, and at the end I need to obtain the time using this function : TotalMinutes/60
    TotalMinutes is the SUM column in the SummaryRow of a detail grid.

     How can I do ?

     

    thanks and regards
    Luca

    Imported from legacy forums. Posted by Luca (had 401 views)

    User (Old forums)
    Member
    Post count: 23064

    There is no events for this.  Moreover, you can’t change a value in a cell of a SummaryRow.  It is a calculated value and is ReadOnly.

    To access the value, you can use the Application.Idle event.  The SummaryRow’s values are calculated very late in the event chain, which explains why it is best to wait until the Idle event is triggered to make sure the values have updated.

    If you need to modify the values of the SummaryRow, a workaround is to use a ValueRow, hide the SummaryRow, and in the Idle event handler, copy the values of the SummaryRow to the ValueRow and modify them as required.

    Imported from legacy forums. Posted by André (had 588 views)

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