Next
Update
Prev

The user-defined style at the data cell can be set by using the styleJsFunction attribute in <DataGridColumn>. This sample Grid demonstrates how to set the user-defined style in the Seoul column.

...
<DataGridColumn ... dataField="Seoul" styleJsFunction="styleAmount" ... />
...
					
function styleAmount(item, column) {
  var value = column.getDataField();
  if (item[value] < 30000)
    return { color:"#FF0000", fontWeight:"bold" };
    
  return null;
}

© 2017 KoolChart. All rights reserved.