pq_rowattr and pq_cellattr in local or remote datacolumn.attrHeadRange.comment() method can be used for dynamic manipulation of comments as in this exampleattr and removeAttr methods as can be seen in examples
for old versions
Note: jQuery attr and removeAttr shouldn't be used directly to manipulate attributes because of virtual rendering used in pqGrid.