Rows and cells can be assigned css classes in the JSON data directly using pq_rowcls and pq_cellcls in local or remote data.

Classes can also be programmatically manipulated using pqGrid API methods addClass, removeClass, hasClass, getRowsByClass and getCellsByClass.

Pitfall: Don't use jQuery addClass to add classes in pqGrid as those classes won't persist when view is refreshed.