RealGrid2 Guide
Style & Theme
Apply cell style

cell style

You can directly assign styles to specific cells with the addUserCellStyle() function.

When you click the Apply Cell Style button, the color is applied to the current focus position.

  function addUserCellStyle() {
     var current = gridView.getCurrent()
     gridView.addUserCellStyle(current.dataRow, current.fieldName,{style:{background:"#ff0000"}})
   }
   function removeUserCellStyle() {
     var current = gridView.getCurrent()
     gridView.removeUserCellStyle(current.dataRow, current.fieldName);
   }

   function allRemoveUserCellStyle() {
     gridView.removeUserCellStyle()
   }