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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Excel style sum of selected cells

Thread ID:





7215 Sep 16,2003 12:27 PM UTC Sep 16,2003 12:33 PM UTC WinForms 1
Tags: GridControl
Ron Huebner
Asked On September 16, 2003 12:27 PM UTC

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.

Administrator [Syncfusion]
Replied On September 16, 2003 12:33 PM UTC

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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon