Gets the display value of the cell in the the specified position.
Namespace: MindFusion.DataViews
File: ArrayModel.js
JavaScript Copy Code |
---|
function displayValue (row, column) |
Number. The row index.
Number. The column index.
String. The display value.
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 999, in red:
JavaScript Copy Code |
---|
for(var i = 0; i < grid.model.rowCount; i++) { //the column displays numbers. Length > 3 means the number is > 999 if(grid.model.dispalyValue(i, 2).length > 3) { grid.getCellElement(i, 2).style.background = "red"; } } |