> For the complete documentation index, see [llms.txt](https://gebra-it.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gebra-it.gitbook.io/wiki/client-api-reference/events/onrowcreated.md).

# onRowCreated

The event occurs when a grid control displays a row. RowCreated does not mean that a database record is created.

The are a couple of special objects you coul use in this event type:

* eventArgs.details.row - this is the new row as a html element.
* eventArgs.details.data- this is the record used for this row
* eventArgs.details.index- this is the index of the row in the entire grid

```javascript
   if(eventArgs.details.data.cordlnShippedQuantity >= eventArgs.details.data.cordlnOrderQuantity){
       $(eventArgs.details.row).addClass("success");
   }
 
   if(eventArgs.details.data.cordlnOrderQuantity - eventArgs.details.data.cordlnShippedQuantity > eventArgs.details.data.cordlnStockQuantity){
       $(eventArgs.details.row).addClass("warning");
   }
```
