We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Excel style sum of selected cells

I would like to implement an Excel like numerical sum of the selected cells in a grid. Excel puts this value in a status bar panel and the value is updated whenever the selected cells are changed. Please suggest an approach to handle updating the sum of the selected cells when the selections in a grid are changed by mouse or keyboard.

1 Reply

AD Administrator Syncfusion Team September 16, 2003 08:33 AM

You could try the SelectionChanging event to handle this. This event should be raised anytime the selection changes, whether from teh keyboard or from the mouse. You could loop through the e.Range object adding up the cell values to get the sum.

Loader.
Live Chat Icon For mobile
Up arrow icon