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

Excel style sum of selected cells

Thread ID:

Created:

Updated:

Platform:

Replies:

7215 Sep 16,2003 08:27 AM Sep 16,2003 08:33 AM Windows Forms 1
loading
Tags: GridControl
Ron Huebner
Asked On September 16, 2003 08:27 AM

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 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.

CONFIRMATION

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.

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.

;