Hi,
I was reading some smilars posts and the example about formula builder in run-runtime, and like is says when the FormulaBuilderDialog is created it needs an IFormulaProvider and Only the Columns and Summary implements the interface.
UltraGridColumn column = this.ultraGrid1.Selected.Columns[0].Column;FormulaBuilderDialog formulaBuilderDialog = new FormulaBuilderDialog(column as IFormulaProvider);
But i need to do this with an UltraTextEditor, how i can do this?
Thanks.
You are on the right track, there is an excellent example in the help collection that shows exactly what you are looking for (formula builder at runtime).
The part you are after is the ultraCalcManager1.GetCalcSettings(UltraTextEditor1) value that is passed to the instantiation to the FormulaBuilderDialog.
There is no built-in WinGrid feature that allows end-users to add unbound columns and apply formulas to them, right?
I've seen some web pages mention a UltraCalcUserDefinedFunction class that we can use to create custom functions and add them to a function library (and I assume show them in the formula builde). But that seems to only be defined for WebGrids. Is there any way to accomplish this in WinGrid?