bp = this.getRowData().getColumnValue("BUYPRICE"); ms = this.getRowData().getColumnValue("MSRP"); mark_up = ((ms-bp)/bp)*100; //If the Markup is over 100 percent make the row italic if( mark_up > 100 ){ this.getStyle().fontStyle = "italic"; }