---
description: This function is used to color a single cell in a grid, or highlight it.
---

# addClassToGridRowCell

## Parameters

1. eventParameter - this is the special parameter you get in OnRowCreated
2. columnId - the name (id) of the column
3. className - the classname to set

### Class names

* success
* danger
* warning
* info
* other options can be found here: [https://getbootstrap.com/docs/4.0/utilities/colors/](https://getbootstrap.com/docs/4.0/utilities/colors/)

### Example Usages

Example inside OnRowCreated

```javascript
app.addClassToGridRowCell(eventArgs, "cordlnShippedQuantity", "success");
```

### Return Values&#x20;

Function does not explicitly produce return value.
