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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Formulas with Virtual Grid ..

Thread ID:





37426 Nov 22,2005 03:09 AM UTC Nov 22,2005 08:56 AM UTC WinForms 1
Tags: GridControl
Adam K.
Asked On November 22, 2005 03:09 AM UTC

I see the databoundgrid example with formulas but i am trying to figure out if i need to store both the formula and do the calculation on my own. If i use formulas with a virtual grid (queryCellInfo & SaveCellInfo) does the grid take care of the calculation dependancy since i am giving formulas or do i have to manage that myself. Also, when SaveCellInfo gets called, how do i know if a formula was enterer or a values was entered. thks, ak

Administrator [Syncfusion]
Replied On November 22, 2005 08:56 AM UTC

The grid will take care of the calculation dependencies. What you need to do is anytime e.Style.FormulaTag is non-null in SaveCellInfo, then save it in a hashtable (or something???) mapped to the cell at e.RowIndex and e.ColIndex. Then in your QueryCellInfo, for the passed in e.RowIndex and e.ColIndex, you check if there is an entry for the cell at this row and column in your hashtable. If there is, then you set this to e.Style.FormulaTag. Here is a minimal sample. http://www.syncfusion.com/Support/user/uploads/GC_Virt_Formulas_40deb4bf.zip


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

or the page will be automatically redirected to 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