Hi, All.
My problem is in WinCalcManager... Can I get a formula that is being calculated at the current time?
i have my implementation of IFormulaValueConverter class but i have only value and context in ConvertToUltraCalcValue method...
Depending on current formula i must return different UltraCalcValue from the same value parameter...
P.S.
It will aslo be great if you may be tell me how to use in calculations fields from foreign key table, for example:
Grid has these columns:
ID
N_Count
N_Price
F_Rate
And the F_Rate table has these columns
B_BooleanProperty
N_Rate1
N_Rate2
So I need to use a formula like that:
[N_Count] * [N_Price] * if ([F_Rate.B_BooleanProperty],[F_Rate.N_Rate1],[F_Rate.N_Rate2])
What does the Context return? I would think it must return some object that allows you to get the formula being calculated.
Well, context is a parameter of ConvertToUltraCalcValue method of IFormulaValueConverter...
in my case this is an UltraGridCell object which contains value, referenced by formula. I've explored it's properties through debugger but didn't find anything about formula which is being calculated currently. =((((((
p.s. this is the quote from Infragistics Help:
If you have the cell, then getting the formula should be pretty easy. All you have to do is use cell.Column.Formula.
=( in context parameter i got a cell which contains value, not formula... =(
formula property of this cell's column is mostly null or empty...
Thank you, Mike.
Maybe you need to submit a sample project to Infragistics Developer Support, then, so they can check it out. It doesn't make sense that the context is a cell in a column with no formula.
Submit an incident to Infragistics Developer Support