Click or drag to resize
GridControlSetExpressionRowCol Method (UInt32, UInt32, String, RedrawFlags)
Stores the expression in the specified cell.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
public bool SetExpressionRowCol(
	uint row,
	uint col,
	string formula,
	RedrawFlags redraw
)

Parameters

row
Type: SystemUInt32
The row index.
col
Type: SystemUInt32
The column index.
formula
Type: SystemString
The expression to store.
redraw
Type: Stingray.GridRedrawFlags
The redraw technique. It can take the following values:

Return Value

Type: Boolean
true if the operation is successful, false otherwise.
Remarks
Parses the given text and based on the text content assigns a formula, a text label, or a number to the specified cell. If you are using the formula engine and you want to force numeric or date values to be stored as string, insert an apostrophe ("'") at the beginning of the text. Formulas can be stored by inserting an equal sign ('=') at the beginning.
See Also