SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getCellStyle  method

Return CellStyle object which has been set in the cell specified by parameter. If not set, it will return null

If want to check whether it is set, you can use getCellStyleId rather than this method. 

function getCellStyle (dataRowIndex: Integer, field: Integer|String): CellStyle;
Returns
CellStyle
Parameters
dataRowIndex - Integer.
field - Integer|String.
Code -1
    // Get cellstyle object being set in the fourth column of fourth row.
    var cs = grid.getCellStyle(3, 3);
Note
See Also
getCellStyleId
CellStyle
Examples
Cell Styles