Search
GridModel.value Method
See Also
 






Gets the value at the specified position.

Namespace: MindFusion.DataViews
File: GridModel.js

 Syntax

JavaScript  Copy Code

function value (row, column)

 Parameters

row

Number. The row index.

column

Number. The column index.

 Return Value

Object. The value.

 Example

The following code gets the display value of all cells in a grid column and paints the background of those, whose value is more than 1000, in red:

JavaScript  Copy Code

for(var i = 0; i < grid.model.rowCount; i++)
{

 if(grid.model.value(i, 2) > 1000)
 {
         grid.getCellElement(i, 2).style.background = "red"; 
 }
}

 See Also