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

Formula support...

Thread ID:

Created:

Updated:

Platform:

Replies:

1995 Dec 10,2002 06:25 AM UTC Feb 2,2004 11:07 PM UTC Windows Forms 5
loading
Tags: GridControl
Toyin
Asked On December 10, 2002 06:25 AM UTC

Hi, I do like the ease of adding formulas... much better than Farpoint's Spread control. Is it possible to freeze the automatic formula recalculation? for instance, I would like to disable recalculation, update the cells of interest and then force a single recalculation of the whole grid. This is especially true if some of the functions I have in place or solvers that require quite a bit of time to recalculate. changing a single input parameter and watching it recalculate is not ideal. Also, any tips on displaying a range of values from a calculation? (A matrix as a result for instance) Is there any way we can bleed onto other cells? Can we use a GridInCell control and write to that? Thanks in advance, Toy.

Administrator [Syncfusion]
Replied On December 10, 2002 12:56 PM UTC

Toy, There is no way to suspend the calculations currently. We will add such a method, and it should be in our next patch release. You could easily display comma separated values with no additional work. To use a gridincell, you would have to derive the GridFromulaCellRenderer/Model and handle the draw to diaply a grid when the cell is not being edited. There are some problems in doing this currently which we will try to work out in the next day or so. When I get it done, I'll post here.

Toyin
Replied On December 10, 2002 01:18 PM UTC

Sounds great, What's the possibility of adding this gridincell via a formula to the framwork itself. I see this as equvalent to the formula range support currently within Excel. For instance a user can call a fucntion called DisplayTable("Products"), and this produces a gridInCell with the columns of the table. The other approach would be to have a drop down where the gridInCell is display. The possibilities are endless for the user in what s/he can do with this type of feature at runtime. Also for the developer in the types of functions s/he can provide (ie a calculation which returns multiple values, the developer has the freedom to display/format the data how s/he wants within a GridInCell. What do you think? Best Regards, Toy.

Administrator [Syncfusion]
Replied On December 11, 2002 09:50 AM UTC

You can probably get a grid to display a calculated matrix in a cell without too much trouble. It may take some non-trivial cleanup work, but attached is a sample that adds a MatrixAddNumber function to the function library and displays its result as a GridInCell. It does this by deriving GridFormulaCellModel and GridFormulaCellRenderer, and in the Renderer's OnDraw override, it checks to see if the computed value contains \t or \n, and if so, it displays the result in a static grid.

JT
Replied On February 2, 2004 05:20 PM UTC

Has this issue been resolved? I''m currently using Essential Grid version 2.0.2.0 and would like to suspend the recalculations until the grid has updated some cell values. There is no way to suspend the calculations currently. We will add such a method, and it should be in our next patch release. You could easily display comma separated values with no additional work. To use a gridincell, you would have to derive the GridFromulaCellRenderer/Model and handle the draw to diaply a grid when the cell is not being edited. There are some problems in doing this currently which we will try to work out in the next day or so. When I get it done, I''ll post here.

Administrator [Syncfusion]
Replied On February 2, 2004 11:07 PM UTC

The current code base has a engine.CalculatingSuspended property that you can set to suspend cell calculations by setting it to true, then later resetting it to false, and then engine.RecalculateRange to do the calculations that did not get done.

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.

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

;