Search
GridModel.setValue Method
See Also
 






Sets a value at the specified position.

Namespace: MindFusion.DataViews
File: GridModel.js

 Syntax

JavaScript  Copy Code

function setValue (row, column, value)

 Parameters

row

Number. The row index.

column

Number. The column index.

value

Object. The value.

 Example

The following code sets the contents of the first cell in a grid to be the current date:

JavaScript  Copy Code
grid.model.setValue(0, 0, new Date());

 See Also