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.
Thanks Mike. I found the examples you mentioned in the SDK examples.
I'm not sure what you are asking. There's no UI built-in to the grid to allow users to add unbound columns. But you could certainly create a UI for this.
Regarding formulas, there's a sample included with the NteAdvantage SDK that shows how to display the Formula Builder for the WinGrid at run-time.
Regarding creating custom Functions, once again, there is a sample of this included in the SDK - and yes, you can do this with the WinForms UltraCalcManager.
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?
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.