Jqgrid 在jqgird中更改标签文本添加表单

Jqgrid 在jqgird中更改标签文本添加表单,jqgrid,Jqgrid,我正在尝试更改StudentOrEmployeeId的标签文本,该文本当前为“Name”。我的更改事件正在运行,但无法更改名称。可能我缺少什么 colNames: ['IssueType', 'Issued To','Name'] { name: 'IssueType', index: 'IssueType', align: 'center', editable: true, edittype: 'select', editoptions: {

我正在尝试更改
StudentOrEmployeeId
的标签文本,该文本当前为“Name”。我的更改事件正在运行,但无法更改名称。可能我缺少什么

colNames: ['IssueType', 'Issued To','Name']
  { name: 'IssueType', index: 'IssueType', align: 'center', editable: true, edittype:  'select',
        editoptions: 
         {
          value: "0:Student;1:Teacher",
          dataEvents: [{
          type: 'change',
          fn: function (e) {
           if ($('#IssueType option:selected').val() == 0)                        
           {                           
          jQuery('tr#StudentOrEmployeeId > td.CaptionTD').html('Student Id')
            }
            else
           {                                       
           jQuery('tr#StudentOrEmployeeId > td.CaptionTD').html('Employee');
                              }
                              }
                            }], }
                      },
           { name: 'StudentOrEmployeeId', 'index': 'StudentOrEmployeeId', editable: true, },

label
属性的
colModel
可用于指定添加/编辑表单的标签。

对不起,在一列下拉值的更改事件中,我需要更改另一列标签的标签,而不是列标题文本