SMART datagrid v.1 > Classes > GridBase
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
- Even if change the property of the returned style object, it will not be reflected in the grid immediately.
- If not special case, it should be handled as read-only object.
- See Also
- getCellStyleId
- CellStyle
- Examples
- Cell Styles