According to the jqGrid Documentation , colNames cannot be changed after colNames .
However, you can simulate a column name change using multiple columns. Then you can hide all of them, except for one that will be shown to the user. When the user selects another, simply swap it in the selected column. For example, if the valid columns are [A, B, C, D], you can start by displaying only A. Then, if the user selects C, hide A and show C. The main disadvantage of this approach is that you will need to copy that however, the same data applies to many columns.
Update
In response to Galichev's post, you can use the setLabel method to rename the column heading.
Justin ethier
source share