addCellCss()
adds a style to a cell
addCellCss(rowId: string | number, colId: string | number, css: string): void;
Parameters:
rowId: string | number
- the id of a rowcolId: string | number
- the id of a columncss: string
- the name of the CSS class
Example
<style>
.myCustomClass{
background:greenyellow;
}
</style>
<script>
...
grid.addCellCss("1", "b", "myCustomClass");
</script>
Related sample: TreeGrid. Add cell CSS