SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getCellStyleId  method

Return the id of CellStyle object set in the cell specified by parameter. If not set, it will return null

function getCellStyleId (dataRowIndex: Integer, field: Integer|String): String;
Returns
String
Parameters
dataRowIndex - Integer.
field - Integer|String.
Code -1
    var cs = grid.getCellStyleId(0, 0);
    if (cs) { 
        // Apply cs style to all columns of No. 0 ~ 1 row.
        grid.setCellStyles([0, 1], -1, cs);
    }
See Also
getCellStyle
setCellStyle
CellStyle
Examples
Cell Styles